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.
-
TupleServer()
- Constructor: builds a new tuple server listening at the default port.
-
TupleServer(int)
- Constructor: builds a new tuple server listening at given port.
-
main(String[])
- TupleServer's entry point as standalone java program.
-
run()
- The main loop: accepts socket connections and run new threads.
-
setVerbose(boolean)
- Sets the verbose mode.
-
waitToStart()
- This method returns when the server is up & running.
TupleServer
public TupleServer()
- Constructor: builds a new tuple server listening at the default port.
TupleServer
public TupleServer(int new_port)
- Constructor: builds a new tuple server listening at given port.
run
public void run()
- The main loop: accepts socket connections and run new threads.
waitToStart
public synchronized void waitToStart()
- This method returns when the server is up & running.
setVerbose
public void setVerbose(boolean mode)
- Sets the verbose mode. Requests will be printed to System.out stream.
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