|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrinda.impl.brokers.LearningTupleBroker
public class LearningTupleBroker
This class implements a tuple broker that tries to learn the destionation of the tuples from the previuos operations
Constructor Summary | |
---|---|
LearningTupleBroker()
|
Method Summary | |
---|---|
TupleSpaceResult |
clientRequest(TupleSpaceOperation op,
java.lang.String client)
Called when the client performs an |
java.lang.Object |
clone()
|
java.lang.Object |
getID()
|
void |
initialize(java.lang.String id,
TupleSpaceConfigurationParameter[] c)
|
void |
peerJoined(java.lang.String h)
|
void |
peerLeft(java.lang.String h)
|
GrindaResponse |
peerRequest(GrindaRequest m)
Called when a result arrives |
void |
peerResult(GrindaResponse m)
Called when a result arrives |
void |
subscribe(TupleSpaceOperation op,
java.lang.String h)
|
void |
unsubscribe(TupleSpaceOperation op,
java.lang.String h)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LearningTupleBroker()
Method Detail |
---|
public java.lang.Object clone()
clone
in interface TupleBroker
clone
in class java.lang.Object
public java.lang.Object getID()
public void initialize(java.lang.String id, TupleSpaceConfigurationParameter[] c)
initialize
in interface TupleBroker
public void subscribe(TupleSpaceOperation op, java.lang.String h)
subscribe
in interface SubscriptionListener
public void unsubscribe(TupleSpaceOperation op, java.lang.String h)
unsubscribe
in interface SubscriptionListener
public void peerJoined(java.lang.String h)
peerJoined
in interface PeerListener
public void peerLeft(java.lang.String h)
peerLeft
in interface PeerListener
public TupleSpaceResult clientRequest(TupleSpaceOperation op, java.lang.String client) throws java.rmi.RemoteException
ClientListener
clientRequest
in interface ClientListener
op
- TupleSpaceOperationclient
- String
java.rmi.RemoteException
public GrindaResponse peerRequest(GrindaRequest m)
RequestListener
peerRequest
in interface RequestListener
m
- the message representing the resultpublic void peerResult(GrindaResponse m)
ResultListener
peerResult
in interface ResultListener
m
- the message representing the result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |