Remote System Explorer DataStore
Release 3.4

org.eclipse.dstore.core.server
Class ServerLauncher

java.lang.Object
  extended by java.lang.Thread
      extended by org.eclipse.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 connect 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.
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
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
ServerLauncher(String portStr, String serverPortRange)
          Constructor
 
Method Summary
protected  ServerLauncher.ConnectionListener getListenerForPort(String port)
          Return the connection listener for the specified port if there is one
 void init(String portStr)
          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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

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

ServerLauncher

public ServerLauncher(String portStr,
                      String serverPortRange)
Constructor

Parameters:
portStr - the port for the daemon socket to run on
serverPortRange - the port range for launched servers
Method Detail

init

public void init(String portStr)
initializes the DataStore daemon

Parameters:
portStr - 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

Specified by:
run in interface Runnable
Overrides:
run in class Thread

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 4075). Optionally, the second arg specifies whether to use SSL or not. an optional second arg can be used to specify the port range of servers that get launched

Remote System Explorer DataStore
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.