Class jada.net.ObjectClient
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jada.net.ObjectClient

java.lang.Object
   |
   +----jada.ObjectSpace
           |
           +----jada.net.ObjectClient

public class ObjectClient
extends ObjectSpace
implements JadaNetConst, JadaNetOpcodes
Interface to a remote object space server.
The usual linda operation are performed on a remote object space.

Constructor Index

 o ObjectClient()
Constructor: builds an object client to connect a server on host localhost
 o ObjectClient(String)
Constructor: builds an object client to connect a server with given hostname
 o ObjectClient(String, int)
Constructor: builds an object client to connect a server with given hostname and port

Method Index

 o close()
Use this method when you know you will not access the object space for long time (or you will not access it anymore).
 o doInRead(Object[], int, boolean, boolean, long)
Overrides ObjectSpace:doInRead: sends the operation request to the remote object server.
 o doOut(Object[], int)
Sends the out request to the remote object server.
 o end()
Sends the end request to the remote object server.
 o isServerAlive()
Use this method to know if the remote object server is up and running before performing requests which could fail
 o ping()
Send a "ping" message to the server.
 o print()
The print request.
 o reset()
Sends the reset request to the remote object server.

Constructors

 o ObjectClient
  public ObjectClient(String host,
                      int port)
Constructor: builds an object client to connect a server with given hostname and port
 o ObjectClient
  public ObjectClient()
Constructor: builds an object client to connect a server on host localhost
 o ObjectClient
  public ObjectClient(String host)
Constructor: builds an object client to connect a server with given hostname

Methods

 o isServerAlive
  public boolean isServerAlive()
Use this method to know if the remote object server is up and running before performing requests which could fail
 o ping
  public void ping() throws JadaIOException
Send a "ping" message to the server.
 o doInRead
  public Object doInRead(Object match[],
                         int n_objects,
                         boolean remove,
                         boolean blocking,
                         long timeout) throws JadaIOException
Overrides ObjectSpace:doInRead: sends the operation request to the remote object server.
Overrides:
doInRead in class ObjectSpace
 o doOut
  public void doOut(Object objects[],
                    int n_objects) throws JadaException
Sends the out request to the remote object server.
Overrides:
doOut in class ObjectSpace
 o reset
  public void reset() throws JadaException
Sends the reset request to the remote object server.
Overrides:
reset in class ObjectSpace
 o print
  public void print()
The print request. This is a debug request. Causes the remote object server to print the contents of the object space to its standard output.
Overrides:
print in class ObjectSpace
 o end
  public void end()
Sends the end request to the remote object server. Watch out: this shuts down the server.
 o close
  public synchronized void close()
Use this method when you know you will not access the object space for long time (or you will not access it anymore). This allows the connection to the server to be closed avoiding server overload.

All Packages  Class Hierarchy  This Package  Previous  Next  Index