Class jada.server.TupleServer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jada.server.TupleServer

java.lang.Object
   |
   +----jada.server.TupleServer

public class TupleServer
extends Object
implements Runnable, TupleNetConst
The remote tuple server. Accepts socket connections and run new threads to handle requests.

Constructor Index

 o TupleServer()
Constructor: builds a new tuple server listening at the default port.
 o TupleServer(int)
Constructor: builds a new tuple server listening at given port.

Method Index

 o main(String[])
TupleServer's entry point as standalone java program.
 o run()
The main loop: accepts socket connections and run new threads.
 o setVerbose(boolean)
Sets the verbose mode.
 o waitToStart()
This method returns when the server is up & running.

Constructors

 o TupleServer
  public TupleServer()
Constructor: builds a new tuple server listening at the default port.
 o TupleServer
  public TupleServer(int new_port)
Constructor: builds a new tuple server listening at given port.

Methods

 o run
  public void run()
The main loop: accepts socket connections and run new threads.
 o waitToStart
  public synchronized void waitToStart()
This method returns when the server is up & running.
 o setVerbose
  public void setVerbose(boolean mode)
Sets the verbose mode. Requests will be printed to System.out stream.
 o main
  public static void main(String args[]) throws IOException
TupleServer's entry point as standalone java program. Used to run a remote tuple server. Accepts remote connections and runs a ServerThread to listen to the new sockets.
Usage: java jada.server.TupleServer [-v] [-p port]
The -verbose option causes debug output to be written on the terminal.
The -p port option can bu used to specify the connection port.

All Packages  Class Hierarchy  This Package  Previous  Next  Index