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.

Constructor Index

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

Method Index

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

Constructors

 o ObjectServer
  public ObjectServer()
Constructor: builds a new object server listening at the default port.
 o ObjectServer
  public ObjectServer(int port)
Constructor: builds a new object 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 synchronized void setVerbose(boolean mode)
Sets the verbose mode. Requests will be printed to System.out stream.
 o 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:
 o getObjectSpace
  public ObjectSpace getObjectSpace()
Return the ObjectSpace object used by the server
 o 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