|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.client.PastryAppl rice.pastry.standard.StandardRouter
public class StandardRouter
An implementation of the standard Pastry routing algorithm.
Field Summary |
---|
Fields inherited from class rice.pastry.client.PastryAppl |
---|
address, deserializer, instance, logger, receiver, thePastryNode |
Constructor Summary | |
---|---|
StandardRouter(PastryNode thePastryNode)
Constructor. |
Method Summary | |
---|---|
boolean |
deliverWhenNotReady()
Instructs the MessageDispatch how to behave when the PastryNode is not ready. |
void |
messageForAppl(Message msg)
Called by pastry when a message arrives for this application. |
void |
receiveMessage(Message msg)
Receive a message from a remote node. |
Methods inherited from class rice.pastry.client.PastryAppl |
---|
accept, connect, destroy, enrouteMessage, getAddress, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, leafSetChange, notifyReady, receiveMessageInternal, receiveSocket, register, routeMsg, routeMsgDirect, routeSetChange, setDeserializer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardRouter(PastryNode thePastryNode)
rt
- the routing table.ls
- the leaf set.Method Detail |
---|
public void receiveMessage(Message msg)
receiveMessage
in class PastryAppl
msg
- the message.public boolean deliverWhenNotReady()
PastryAppl
deliverWhenNotReady
in class PastryAppl
public void messageForAppl(Message msg)
PastryAppl
messageForAppl
in class PastryAppl
msg
- the message that is arriving.
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |