|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.socket.nat.rendezvous.RendezvousRouterStrategy
public class RendezvousRouterStrategy
| Constructor Summary | |
|---|---|
RendezvousRouterStrategy(PriorityTransportLayer<MultiInetSocketAddress> priority,
Environment env)
|
|
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getOptions(NodeHandle nh)
|
NodeHandle |
pickNextHop(RouteMessage msg,
java.util.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 |
|---|
public RendezvousRouterStrategy(PriorityTransportLayer<MultiInetSocketAddress> priority,
Environment env)
| Method Detail |
|---|
public NodeHandle pickNextHop(RouteMessage msg,
java.util.Iterator<NodeHandle> i)
pickNextHop in interface RouterStrategyprotected int routingQuality(NodeHandle nh)
nh -
protected java.util.Map<java.lang.String,java.lang.Object> getOptions(NodeHandle nh)
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||