rreval
Class ConnectionJ
java.lang.Object
rreval.ConnectionJ
public class ConnectionJ
- extends java.lang.Object
A socket connection to a (usually) remote java app and the associated
object stream reader and writer. Note that a JReader
, RWriter
pair share the same connection (since both actually need to read and write.
A ConnectionJ is not itself secure. Security is achieved
by doing communication via ssh port forwarding.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_WRITE_RETRIES
public static int MAX_WRITE_RETRIES
RETRY_NAP
public static long RETRY_NAP
ConnectionJ
public ConnectionJ(java.net.Socket socket,
ConnectionJ.HostType type)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(java.io.Serializable obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
read
public java.io.Serializable read()
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
readMessage
public java.io.Serializable readMessage()
writeMessage
public void writeMessage(java.io.Serializable obj)
throws java.lang.Exception
- Throws:
java.lang.Exception