Remote System Explorer DataStore
Release 3.2

org.eclipse.dstore.core.server
Class Server

java.lang.Object
  extended by org.eclipse.dstore.core.server.Server
All Implemented Interfaces:
Runnable

public class Server
extends Object
implements Runnable

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

Server

public Server()
Creates a new Server with default DataStore and connection attributes.


Server

public Server(String port)
Creates a new Server that waits on the specified socket port.

Parameters:
port - the number of the socket port to wait on

Server

public Server(String port,
              String timeout)
Creates a new Server that waits on the specified socket port for the specified time interval before shutting down.

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

Server

public 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.

Parameters:
port - the number of the socket port to wait on
timeout - the idle time to wait before shutting down
ticket - the ticket that the client needs to interact with the DataStore

Server

public 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.

Parameters:
port - the number of the socket port to wait on
backlog - listen backlog
bindAddr - the local IP address to bind to
timeout - the idle time to wait before shutting down
ticket - the ticket that the client needs to interact with the DataStore
Since:
3.2
Method Detail

main

public static void main(String[] args)
The startup interface to run the Server.

Parameters:
args - a list of arguments for running the server. These consist of the socket port to wait on, the timeout value, and the the ticket

run

public void run()
Runs the server by starting the ConnectionEstablisher

Specified by:
run in interface Runnable

getEstablisher

public ConnectionEstablisher getEstablisher()
Return the reference for the ConnectionEstablisher for this client

Returns:
the the reference for the ConnectionEstablisher instance for this client
Since:
3.0

Remote System Explorer DataStore
Release 3.2

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