Private Methods | |
| public | Connection (String name) throws MPSException |
| public String | toString () |
| private void | parseResolvedName () throws MPSException |
| public void | open () throws MPSException |
| public void | close () throws MPSException |
| public java io InputStream | getInputStream () throws MPSException |
| public java io OutputStream | getOutputStream () throws MPSException |
| public String | getResolvedName () |
| int | getOid () |
Private Attributes | |
| private String | resolvedName |
| private Socket | connection |
| private String | method |
| private String | hostname |
| private int | portnumber |
| private int | oid |
Contains the looked-up/resolved address of the remote server (ie. the canonical name of the server), and a Socket for communication with the server. This class is only used internally, and should never be exposed to client objects outside this package.
Definition at line 53 of file Connection.java.
|
|
Creates a fresh Connection given the resolved name of a remote object to connect to.
Definition at line 76 of file Connection.java. |
|
|
Closes the connection to the remote server.
Definition at line 139 of file Connection.java. Referenced by Proxy::_disconnect_proxy(). |
|
|
Allows clients access to the input (server-to-client) facilities of the socket connected to the remote server.
Definition at line 157 of file Connection.java. Referenced by InputStream::open(). |
|
|
Returns the OID of the remote object. For use by {Input,Output}Stream's constructors. Definition at line 195 of file Connection.java. Referenced by Proxy::getInputStream(), and Proxy::getOutputStream(). |
|
|
Allows clients access to the output (client-to-server) facilities of the socket connected to the remote server.
Definition at line 174 of file Connection.java. Referenced by OutputStream::open(). |
|
|
Allows clients to inspect the canonical name for the server we are connected to.
Definition at line 187 of file Connection.java. Referenced by Proxy::getReference(). |
|
|
Opens the connection to the remote server. Only called on demand.
Definition at line 121 of file Connection.java. Referenced by getInputStream(), and getOutputStream(). |
|
|
Splits up the resolvedName of this object into its components.
Definition at line 97 of file Connection.java. Referenced by Connection(), and open(). |
|
|
Obtains a (simple) human-readable representation of this connection object.
Definition at line 88 of file Connection.java. Referenced by close(), getInputStream(), getOutputStream(), open(), and parseResolvedName(). |
|
|
Socket that connects us to the remote server.
Definition at line 58 of file Connection.java. |
|
|
Hostname of the remote server - taken from resolvedName.
Definition at line 63 of file Connection.java. |
|
|
Transport name - always "inet", for the Java implementation, currently.
Definition at line 61 of file Connection.java. |
|
|
OID (Object ID) of the remote server - taken from resolvedName.
Definition at line 67 of file Connection.java. |
|
|
Port number of the remote server - taken from resolvedName.
Definition at line 65 of file Connection.java. |
|
|
mps:inet:<host>:<port>:<oid> - server's canonical (bound) name.
Definition at line 55 of file Connection.java. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001