Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.server
Class ConnectionEstablisher

java.lang.Object
  extended bycom.ibm.etools.systems.dstore.core.server.ConnectionEstablisher

public class ConnectionEstablisher
extends Object

ConnectionEstablisher is responsible for managing the server DataStore and facilitating the communication between client and server DataStores.


Field Summary
static String Copyright
           
 
Constructor Summary
ConnectionEstablisher()
          Creates the default ConnectionEstablisher.
ConnectionEstablisher(String port)
          Creates a ConnectionEstablisher.
ConnectionEstablisher(String port, String timeout)
          Creates a ConnectionEstablisher.
ConnectionEstablisher(String port, String timeout, String ticket)
          Creates a ConnectionEstablisher.
 
Method Summary
 void finished(ServerReceiver receiver)
          Tells the connection establisher to clean up and shutdown
 DataStore getDataStore()
          Returns the DataStore.
 void start()
          Starts the run loop for the ConnectionEstablisher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

ConnectionEstablisher

public ConnectionEstablisher()
Creates the default ConnectionEstablisher. Communication occurs on a default port, there is no timeout and no ticket is required for a client to work with the DataStore.


ConnectionEstablisher

public ConnectionEstablisher(String port)
Creates a ConnectionEstablisher. Communication occurs on the specified port, there is no timeout and no ticket is required for a client to work with the DataStore.

Parameters:
port - the number of the socket port

ConnectionEstablisher

public ConnectionEstablisher(String port,
                             String timeout)
Creates a ConnectionEstablisher. Communication occurs on the specified port, a timeout value indicates the idle wait time before shutting down, and no ticket is required for a client to work with the DataStore.

Parameters:
port - the number of the socket port
timeout - the idle duration to wait before shutting down

ConnectionEstablisher

public ConnectionEstablisher(String port,
                             String timeout,
                             String ticket)
Creates a ConnectionEstablisher. Communication occurs on the specified port, a timeout value indicates the idle wait time before shutting down, and ticket specified the required ticket for a client to present in order to work with the DataStore.

Parameters:
port - the number of the socket port
timeout - the idle duration to wait before shutting down
ticket - validation id required by the client to access the DataStore
Method Detail

start

public void start()
Starts the run loop for the ConnectionEstablisher.


getDataStore

public DataStore getDataStore()
Returns the DataStore.

Returns:
the DataStore

finished

public void finished(ServerReceiver receiver)
Tells the connection establisher to clean up and shutdown


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.