rice.pastry.socket.nat.rendezvous
Class RendezvousRouterStrategy

java.lang.Object
  extended by rice.pastry.socket.nat.rendezvous.RendezvousRouterStrategy
All Implemented Interfaces:
RouterStrategy

public class RendezvousRouterStrategy
extends Object
implements RouterStrategy


Constructor Summary
RendezvousRouterStrategy(PriorityTransportLayer<MultiInetSocketAddress> priority, Environment env)
           
 
Method Summary
protected  Map<String,Object> getOptions(NodeHandle nh)
           
 NodeHandle pickNextHop(RouteMessage msg, Iterator<NodeHandle> i)
           
protected  int routingQuality(NodeHandle nh)
          Returns the quality of the nh for routing 0 is optimal 0 if connected and alive Suspected is a 1 (if connected or directly connectable) Alive and connected/directly contactable = 0 not directly connectable = 5 (unless connected) 10 if faulty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendezvousRouterStrategy

public RendezvousRouterStrategy(PriorityTransportLayer<MultiInetSocketAddress> priority,
                                Environment env)
Method Detail

pickNextHop

public NodeHandle pickNextHop(RouteMessage msg,
                              Iterator<NodeHandle> i)
Specified by:
pickNextHop in interface RouterStrategy

routingQuality

protected int routingQuality(NodeHandle nh)
Returns the quality of the nh for routing 0 is optimal 0 if connected and alive Suspected is a 1 (if connected or directly connectable) Alive and connected/directly contactable = 0 not directly connectable = 5 (unless connected) 10 if faulty

Parameters:
nh -
Returns:

getOptions

protected Map<String,Object> getOptions(NodeHandle nh)


Copyright © 2010. All Rights Reserved.