com.ibm.tspaces
Class ServerConnection
java.lang.Object
|
+--com.ibm.tspaces.ServerConnection
- public class ServerConnection
- extends java.lang.Object
The class server connection is just a structure to store the
input and output connections to the server.
- Author:
- John Thomas, Pete Wyckoff
- See Also:
TSCmd,
TSCmdSocketImpl,
TupleSpace
|
Constructor Summary |
ServerConnection(java.lang.String serverHostAndPort_,
java.io.ObjectOutput toServer_,
CallbackThread fromServer_,
int localPort_,
TSCmd tsCmdImpl_)
construct a connection struct class. |
|
Method Summary |
protected void |
finalize()
get rid of a connection to the server; unfortunately the finalize method is not
called at program exit so this is not a way to clean up sockets when the program is
exiting. |
java.lang.String |
toString()
Display serverConnection as a String |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ServerConnection
public ServerConnection(java.lang.String serverHostAndPort_,
java.io.ObjectOutput toServer_,
CallbackThread fromServer_,
int localPort_,
TSCmd tsCmdImpl_)
- construct a connection struct class.
- Parameters:
serverHostAndPort_ - hostname and port of server catted togethertoServer_ - the object output stream that is connection to the serverfromServer_ - the listener thread connected to the input streamof the server socket
toString
public java.lang.String toString()
- Display serverConnection as a String
- Overrides:
- toString in class java.lang.Object
finalize
protected void finalize()
throws java.io.IOException
- get rid of a connection to the server; unfortunately the finalize method is not
called at program exit so this is not a way to clean up sockets when the program is
exiting.
- Overrides:
- finalize in class java.lang.Object