Class jada.net.ObjectServer
All Packages Class Hierarchy This Package Previous Next Index
Class jada.net.ObjectServer
java.lang.Object
|
+----jada.net.ObjectServer
- public class ObjectServer
- extends Object
- implements Runnable, JadaNetConst, JadaNetOpcodes
The remote object server.
Accepts socket connections and run new threads to handle requests.
-
ObjectServer()
- Constructor: builds a new object server listening at the default port.
-
ObjectServer(int)
- Constructor: builds a new object server listening at given port.
-
getObjectSpace()
- Return the ObjectSpace object used by the server
-
main(String[])
- ObjectServer's entry point as standalone java program.
-
run()
- The main loop: accepts socket connections and run new threads.
-
setDebug(boolean)
- Sets the debug mode.
-
setVerbose(boolean)
- Sets the verbose mode.
-
waitToStart()
- This method returns when the server is up & running.
ObjectServer
public ObjectServer()
- Constructor: builds a new object server listening at the default port.
ObjectServer
public ObjectServer(int port)
- Constructor: builds a new object 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 synchronized void setVerbose(boolean mode)
- Sets the verbose mode. Requests will be printed to System.out stream.
setDebug
public synchronized void setDebug(boolean mode)
- Sets the debug mode. Debug info will be printed to System.err stream
(if Jada is setted to report errors,
- See Also:
-
getObjectSpace
public ObjectSpace getObjectSpace()
- Return the ObjectSpace object used by the server
main
public static void main(String args[]) throws IOException
- ObjectServer's entry point as standalone java program.
Used to run a remote object server.
Accepts remote connections and runs a ServerThread to listen
to the new sockets.
Usage: java jada.server.ObjectServer [-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