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.
-
ObjectClient()
- Constructor: builds an object client to connect a server on host
localhost
-
ObjectClient(String)
- Constructor: builds an object client to connect a server with given
hostname
-
ObjectClient(String, int)
- Constructor: builds an object client to connect a server with given
hostname and port
-
close()
- Use this method when you know you will not access the object space
for long time (or you will not access it anymore).
-
doInRead(Object[], int, boolean, boolean, long)
- Overrides ObjectSpace:doInRead: sends the operation request to
the remote object server.
-
doOut(Object[], int)
- Sends the out request to the remote object server.
-
end()
- Sends the end request to the remote object server.
-
isServerAlive()
- Use this method to know if the remote object server is up and running
before performing requests which could fail
-
ping()
- Send a "ping" message to the server.
-
print()
- The print request.
-
reset()
- Sends the reset request to the remote object server.
ObjectClient
public ObjectClient(String host,
int port)
- Constructor: builds an object client to connect a server with given
hostname and port
ObjectClient
public ObjectClient()
- Constructor: builds an object client to connect a server on host
localhost
ObjectClient
public ObjectClient(String host)
- Constructor: builds an object client to connect a server with given
hostname
isServerAlive
public boolean isServerAlive()
- Use this method to know if the remote object server is up and running
before performing requests which could fail
ping
public void ping() throws JadaIOException
- Send a "ping" message to the server.
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
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
reset
public void reset() throws JadaException
- Sends the reset request to the remote object server.
- Overrides:
- reset in class ObjectSpace
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
end
public void end()
- Sends the end request to the remote object server. Watch out: this
shuts down the server.
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