rreval
Class ConnectionJ

java.lang.Object
  extended by 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 aa 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.


Nested Class Summary
static class ConnectionJ.HostType
           
 
Field Summary
static int MAX_WRITE_RETRIES
           
static long RETRY_NAP
           
 
Constructor Summary
ConnectionJ(java.net.Socket socket, ConnectionJ.HostType type)
           
 
Method Summary
 void close()
           
 java.io.Serializable read()
           
 java.io.Serializable readMessage()
           
 void write(java.io.Serializable obj)
           
 void writeMessage(java.io.Serializable obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_WRITE_RETRIES

public static int MAX_WRITE_RETRIES

RETRY_NAP

public static long RETRY_NAP
Constructor Detail

ConnectionJ

public ConnectionJ(java.net.Socket socket,
                   ConnectionJ.HostType type)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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