|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.client.PastryAppl
rice.pastry.standard.StandardRouter
rice.pastry.standard.RapidRerouter
public class RapidRerouter
The superclass makes the routing decisions. This class handles the rapid-rerouting.
Field Summary |
---|
Fields inherited from class rice.pastry.client.PastryAppl |
---|
address, deserializer, instance, options, receiver, thePastryNode |
Fields inherited from interface org.mpisws.p2p.transport.liveness.LivenessListener |
---|
LIVENESS_ALIVE, LIVENESS_DEAD, LIVENESS_DEAD_FOREVER, LIVENESS_SUSPECTED |
Constructor Summary | |
---|---|
RapidRerouter(PastryNode thePastryNode,
MessageDispatch dispatch)
|
Method Summary | |
---|---|
void |
livenessChanged(NodeHandle i,
int val)
Called when the liveness changes. |
protected void |
rerouteMe(RouteMessage rm,
NodeHandle oldDest)
|
protected void |
sendTheMessage(RouteMessage rm,
NodeHandle handle)
|
Methods inherited from class rice.pastry.standard.StandardRouter |
---|
deliverToApplication, deliverWhenNotReady, messageForAppl, receiveMessage, route, routeMessage |
Methods inherited from class rice.pastry.client.PastryAppl |
---|
accept, canReceiveSocket, connect, destroy, enrouteMessage, finishReceiveSocket, getAddress, getDeserializer, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, leafSetChange, notifyReady, receiveMessageInternal, 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 RapidRerouter(PastryNode thePastryNode, MessageDispatch dispatch)
Method Detail |
---|
protected void sendTheMessage(RouteMessage rm, NodeHandle handle)
sendTheMessage
in class StandardRouter
protected void rerouteMe(RouteMessage rm, NodeHandle oldDest)
public void livenessChanged(NodeHandle i, int val)
LivenessListener
livenessChanged
in interface LivenessListener<NodeHandle>
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |