|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.dstore.core.server.Server
public class Server
Server is the standard way of instantiating and controlling a remote DataStore. The server runs a ConnectionEstablisher which manages client connections to the DataStore.
Constructor Summary | |
---|---|
Server()
Creates a new Server with default DataStore and connection attributes. |
|
Server(String port)
Creates a new Server that waits on the specified socket port. |
|
Server(String port,
int backlog,
InetAddress bindAddr,
String timeout,
String ticket)
Creates a new Server that waits on the specified socket port and the specified IP address with the backlog for the specified time interval before shutting down. |
|
Server(String port,
String timeout)
Creates a new Server that waits on the specified socket port for the specified time interval before shutting down. |
|
Server(String port,
String timeout,
String ticket)
Creates a new Server that waits on the specified socket port for the specified time interval before shutting down. |
Method Summary | |
---|---|
ConnectionEstablisher |
getEstablisher()
Return the reference for the ConnectionEstablisher for this client |
static void |
main(String[] args)
The startup interface to run the Server. |
void |
run()
Runs the server by starting the ConnectionEstablisher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Server()
public Server(String port)
port
- the number of the socket port to wait onpublic Server(String port, String timeout)
port
- the number of the socket port to wait ontimeout
- the idle time to wait before shutting downpublic Server(String port, String timeout, String ticket)
port
- the number of the socket port to wait ontimeout
- the idle time to wait before shutting downticket
- the ticket that the client needs to interact with the DataStorepublic Server(String port, int backlog, InetAddress bindAddr, String timeout, String ticket)
port
- the number of the socket port to wait onbacklog
- listen backlogbindAddr
- the local IP address to bind totimeout
- the idle time to wait before shutting downticket
- the ticket that the client needs to interact with the DataStoreMethod Detail |
---|
public static void main(String[] args)
args
- a list of arguments for running the server. These consist of
the socket port to wait on, the timeout value, and the the ticketpublic void run()
run
in interface Runnable
public ConnectionEstablisher getEstablisher()
|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |