Rice Pastry API

rice.pastry.standard
Class RapidRerouter

java.lang.Object
  extended by rice.pastry.client.PastryAppl
      extended by rice.pastry.standard.StandardRouter
          extended by rice.pastry.standard.RapidRerouter
All Implemented Interfaces:
LivenessListener<NodeHandle>, Router

public class RapidRerouter
extends StandardRouter
implements LivenessListener<NodeHandle>

The superclass makes the routing decisions. This class handles the rapid-rerouting.

Author:
Jeff Hoye

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

RapidRerouter

public RapidRerouter(PastryNode thePastryNode,
                     MessageDispatch dispatch)
Method Detail

sendTheMessage

protected void sendTheMessage(RouteMessage rm,
                              NodeHandle handle)
Overrides:
sendTheMessage in class StandardRouter

rerouteMe

protected void rerouteMe(RouteMessage rm,
                         NodeHandle oldDest)

livenessChanged

public void livenessChanged(NodeHandle i,
                            int val)
Description copied from interface: LivenessListener
Called when the liveness changes.

Specified by:
livenessChanged in interface LivenessListener<NodeHandle>

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection