|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TupleSpace
The interface used to communicate with the tuple space service. It provide all the operations needed to work on a tuple space.
| Method Summary | |
|---|---|
void |
addListener(OperationType operation,
Tuple templ,
TupleSpaceListener l)
Adds a listener for a specific operation on the tuple space |
Tuple |
read(Tuple t,
txservice.client.Transaction tx)
Gets a tuple from the tuple space matching with the given template. |
Tuple[] |
readAll(Tuple t,
txservice.client.Transaction tx)
Gets all tuples from the tuple space matching with the given template. |
Tuple[] |
readAllp(Tuple t,
txservice.client.Transaction tx)
Gets all tuples from the tuple space matching with the given template. |
Tuple |
readp(Tuple t,
txservice.client.Transaction tx)
Gets a randomly choosen tuple from the tuple space matching with the given template. |
void |
removeListener(OperationType operation,
Tuple templ,
TupleSpaceListener l)
Removes a listener for a specific operation on the tuple space |
Tuple |
take(Tuple t,
txservice.client.Transaction tx)
Extracts a randomly choosen tuple from the tuple space matching with the given template. |
Tuple[] |
takeAll(Tuple t,
txservice.client.Transaction tx)
Extracts all tuples from the tuple space matching with the given template. |
Tuple[] |
takeAllp(Tuple t,
txservice.client.Transaction tx)
Extracts all tuples from the tuple space matching with the given template. |
Tuple |
takep(Tuple t,
txservice.client.Transaction tx)
Extracts a randomly choosen tuple from the tuple space matching with the given template. |
void |
write(Tuple t,
txservice.client.Transaction tx)
Inserts a tuple in the tuple space |
void |
writeAll(Tuple[] t,
txservice.client.Transaction tx)
Inserts a tuple array in a tuple space |
| Method Detail |
|---|
void addListener(OperationType operation,
Tuple templ,
TupleSpaceListener l)
throws java.rmi.RemoteException
operation - the operation type (WRITE or DELETE)templ - the template of the tuple that the listener is iteresting tol - the listener
java.rmi.RemoteException
void removeListener(OperationType operation,
Tuple templ,
TupleSpaceListener l)
throws java.rmi.RemoteException
operation - the operation type (WRITE or DELETE)templ - the template of the tuple that the listener is iteresting tol - the listener
java.rmi.RemoteException
void write(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the tupletx - the transaction
java.rmi.RemoteException
void writeAll(Tuple[] t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the tuplestx - the transaction
java.rmi.RemoteException
Tuple take(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple read(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple[] takeAll(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple[] readAll(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple takep(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple readp(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple[] takeAllp(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
Tuple[] readAllp(Tuple t,
txservice.client.Transaction tx)
throws java.rmi.RemoteException
t - the template used by the matchingtx - the transaction
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||