|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeerbase.util.SimpleRouter
public class SimpleRouter
A simple router that attempts to route messages by simply looking for the destination peer information in the node's list of peers. If the destination node is not an immediate neighbor, this function fails.
Constructor Summary | |
---|---|
SimpleRouter(Node peer)
|
Method Summary | |
---|---|
PeerInfo |
route(java.lang.String peerid)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleRouter(Node peer)
Method Detail |
---|
public PeerInfo route(java.lang.String peerid)
route
in interface RouterInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |