rice.pastry.socket.nat.rendezvous
Class RendezvousRouterStrategy
java.lang.Object
rice.pastry.socket.nat.rendezvous.RendezvousRouterStrategy
- All Implemented Interfaces:
- RouterStrategy
public class RendezvousRouterStrategy
- extends Object
- implements RouterStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RendezvousRouterStrategy
public RendezvousRouterStrategy(PriorityTransportLayer<MultiInetSocketAddress> priority,
Environment env)
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.