Remote Systems
v6.4.1

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

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.dstore.core.server.ServerLauncher
All Implemented Interfaces:
Runnable

public class ServerLauncher
extends Thread

This class is the DataStore daemon. It is used for authenticating users, launching DataStore servers under particular user IDs, and providing a client with enough information to conntect to a launched server.


Nested Class Summary
 class ServerLauncher.ConnectionListener
          An instances of this class get loaded whenever a client requests access to a DataStore server.
 
Field Summary
static String Copyright
           
static int DEFAULT_DAEMON_PORT
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerLauncher()
          Constructor
ServerLauncher(String portStr)
          Constructor
 
Method Summary
protected  ServerLauncher.ConnectionListener getListenerForPort(String port)
          Return the connection listener for the specified port if there is one
 void init(int port)
          initializes the DataStore daemon
static void main(String[] args)
          Entry point into the DataStore daemon
 void run()
          Run the daemon
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

DEFAULT_DAEMON_PORT

public static int DEFAULT_DAEMON_PORT
Constructor Detail

ServerLauncher

public ServerLauncher()
Constructor


ServerLauncher

public ServerLauncher(String portStr)
Constructor

Parameters:
portStr - the port for the daemon socket to run on
Method Detail

init

public void init(int port)
initializes the DataStore daemon

Parameters:
port - the daemon port

getListenerForPort

protected ServerLauncher.ConnectionListener getListenerForPort(String port)
Return the connection listener for the specified port if there is one

Parameters:
port - the port
Returns:
the listener associated with the port

run

public void run()
Run the daemon


main

public static void main(String[] args)
Entry point into the DataStore daemon

Parameters:
args - the port for the daemon to run on (default is 4035). Optionally, the second arg specifies whether to use SSL or not.

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.