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.

Constructor Index

 o TupleClient(String, int)
Constructor: builds a tuple client to connect a server with given hostname and port
 o TupleClient()
Constructor: builds a tuple client to connect a server on host localhost.
 o TupleClient(String)
Constructor: builds a tuple client to connect a server with given hostname

Method Index

 o end()
Sends the end request to the remote tuple server.
 o inRead(Tuple[], int, boolean, boolean)
Overrides TupleSpace:inRead: sends the operation request to the remote tuple server.
 o out(Tuple)
Sends the out request to the remote tuple server.
 o print()
The print request.
 o reset()
Sends the reset request to the remote tuple server.

Constructors

 o TupleClient
  public TupleClient(String _host,
                     int _port)
Constructor: builds a tuple client to connect a server with given hostname and port
 o TupleClient
  public TupleClient()
Constructor: builds a tuple client to connect a server on host localhost.
 o TupleClient
  public TupleClient(String _host)
Constructor: builds a tuple client to connect a server with given hostname

Methods

 o 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
 o out
  public void out(Tuple item)
Sends the out request to the remote tuple server.
Overrides:
out in class TupleSpace
 o reset
  public void reset()
Sends the reset request to the remote tuple server.
Overrides:
reset in class TupleSpace
 o 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
 o 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