org.hopto.pentaj.jexin.node
Class TraceClientImpl

java.lang.Object
  extended by org.hopto.pentaj.jexin.node.TraceClientImpl
All Implemented Interfaces:
TraceClient

public class TraceClientImpl
extends java.lang.Object
implements TraceClient

Client for the TraceServer


Field Summary
static int DEFAULT_READ_TIMEOUT
           
 
Fields inherited from interface org.hopto.pentaj.jexin.node.TraceClient
DEFAULT_PORT
 
Constructor Summary
TraceClientImpl()
           
TraceClientImpl(javax.net.SocketFactory socketFactory)
           
 
Method Summary
 void connect(NodeAddress address, TraceClientObserver traceClientObserver)
          Connects to the TraceServer
 void disconnect()
          Disconnects from the TraceServer
 void setReadTimeout(int readTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_READ_TIMEOUT

public static final int DEFAULT_READ_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

TraceClientImpl

public TraceClientImpl()

TraceClientImpl

public TraceClientImpl(javax.net.SocketFactory socketFactory)
Method Detail

setReadTimeout

public void setReadTimeout(int readTimeout)
Parameters:
readTimeout - the readTimeout to set

connect

public void connect(NodeAddress address,
                    TraceClientObserver traceClientObserver)
             throws java.net.UnknownHostException,
                    java.io.IOException
Description copied from interface: TraceClient
Connects to the TraceServer

Specified by:
connect in interface TraceClient
Throws:
java.net.UnknownHostException
java.io.IOException
See Also:
TraceClient.connect(org.hopto.pentaj.jexin.node.NodeAddress, org.hopto.pentaj.jexin.node.TraceClientObserver)

disconnect

public void disconnect()
Description copied from interface: TraceClient
Disconnects from the TraceServer

Specified by:
disconnect in interface TraceClient
See Also:
TraceClient.disconnect()