|
Remote System Explorer DataStore Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.eclipse.dstore.core.server.ServerLauncher
public class ServerLauncher
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. |
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, 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 |
---|
public static int DEFAULT_DAEMON_PORT
Constructor Detail |
---|
public ServerLauncher()
public ServerLauncher(String portStr)
portStr
- the port for the daemon socket to run onpublic ServerLauncher(String portStr, String serverPortRange)
portStr
- the port for the daemon socket to run onserverPortRange
- the port range for launched serversMethod Detail |
---|
public void init(String portStr)
portStr
- the daemon portprotected ServerLauncher.ConnectionListener getListenerForPort(String port)
port
- the port
public void run()
run
in interface Runnable
run
in class Thread
public static void main(String[] args)
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.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |