Class jada.client.TupleClient
All Packages Class Hierarchy This Package Previous Next Index
Class jada.client.TupleClient
java.lang.Object
|
+----jada.tuple.TupleSpace
|
+----jada.client.TupleClient
- public class TupleClient
- extends TupleSpace
- implements TupleNetConst
Interface to a remote tuple space server.
The usual linda operation are performed on a remote tuple space.
On errors the arised exception are printed and System.exit(1) is
called.
-
TupleClient(String, int)
- Constructor: builds a tuple client to connect a server with given
hostname and port
-
TupleClient()
- Constructor: builds a tuple client to connect a server on host
localhost.
-
TupleClient(String)
- Constructor: builds a tuple client to connect a server with given
hostname
-
end()
- Sends the end request to the remote tuple server.
-
inRead(Tuple[], int, boolean, boolean)
- Overrides TupleSpace:inRead: sends the operation request to
the remote tuple server.
-
out(Tuple)
- Sends the out request to the remote tuple server.
-
print()
- The print request.
-
reset()
- Sends the reset request to the remote tuple server.
TupleClient
public TupleClient(String _host,
int _port)
- Constructor: builds a tuple client to connect a server with given
hostname and port
TupleClient
public TupleClient()
- Constructor: builds a tuple client to connect a server on host
localhost.
TupleClient
public TupleClient(String _host)
- Constructor: builds a tuple client to connect a server with given
hostname
inRead
public Tuple inRead(Tuple match[],
int n_tuples,
boolean remove,
boolean blocking)
- Overrides TupleSpace:inRead: sends the operation request to
the remote tuple server.
- Overrides:
- inRead in class TupleSpace
out
public void out(Tuple item)
- Sends the out request to the remote tuple server.
- Overrides:
- out in class TupleSpace
reset
public void reset()
- Sends the reset request to the remote tuple server.
- Overrides:
- reset in class TupleSpace
print
public void print()
- The print request.
This is a debug request. Causes the remote tuple server to print the
contents of the tuple space to its standard output.
- Overrides:
- print in class TupleSpace
end
public void end()
- Sends the end request to the remote tuple server. Watch out: this
shuts down the server.
All Packages Class Hierarchy This Package Previous Next Index