|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.transport.nio.tcp.NioTcpRmiClientConnection
public class NioTcpRmiClientConnection
A connection over a Socket- the connection uses the
MarshalOutputStream class to serialize outgoing objects.
| Constructor Summary | |
|---|---|
NioTcpRmiClientConnection(java.net.Socket sock,
int bufsize)
Constructor for RMIConnection. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this connection. |
ServerAddress |
getServerAddress()
Returns "address" of the server with which this connection communicates. |
java.lang.Object |
receive()
Receives an object from the server with which this connection communicates. |
void |
send(java.lang.Object o)
Sends the given object to the server with which this connection communicates. |
void |
send(java.lang.Object o,
VmId vmId,
java.lang.String transportType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NioTcpRmiClientConnection(java.net.Socket sock,
int bufsize)
throws java.io.IOException
sock -
java.io.IOException| Method Detail |
|---|
public ServerAddress getServerAddress()
Connection
getServerAddress in interface ConnectionServerAddress.Connection.getServerAddress()
public void send(java.lang.Object o,
VmId vmId,
java.lang.String transportType)
throws java.io.IOException,
java.rmi.RemoteException
send in interface RmiConnectionjava.io.IOException
java.rmi.RemoteExceptionRmiConnection.send(Object, VmId,
String)
public void send(java.lang.Object o)
throws java.io.IOException,
java.rmi.RemoteException
Connection
send in interface Connectionjava.io.IOException
java.rmi.RemoteExceptionConnection.send(java.lang.Object)
public java.lang.Object receive()
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.rmi.RemoteException
Connection
receive in interface ConnectionObject.
java.io.IOException
java.lang.ClassNotFoundException
java.rmi.RemoteExceptionConnection.receive()public void close()
Connection
close in interface ConnectionConnection.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||