public class Routing extends Object
| Constructor and Description |
|---|
Routing(PeerBean peerBean,
NeighborRPC neighbors) |
| Modifier and Type | Method and Description |
|---|---|
FutureBootstrap |
bootstrap(Collection<PeerAddress> peerAddresses,
int maxNoNewInfo,
int maxFailures,
int parallel,
boolean forceSocket)
Bootstraps to the given remoteNode, i.e.
|
FutureRouting |
route(Number160 locationKey,
Number160 domainKey,
Collection<Number160> contentKeys,
Message.Command command,
int maxDirectHits,
int maxNoNewInfo,
int maxFailures,
int parallel,
boolean isDigest)
Looks for a route to the given locationKey
|
public Routing(PeerBean peerBean, NeighborRPC neighbors)
public FutureBootstrap bootstrap(Collection<PeerAddress> peerAddresses, int maxNoNewInfo, int maxFailures, int parallel, boolean forceSocket)
remoteNode - the node to which bootstrap should be performed tomaxNoNewInfo - number of nodes asked without new information to stop
atmaxFailures - number of failures to stop atparallel - number of routing requests performed concurrentlypublic FutureRouting route(Number160 locationKey, Number160 domainKey, Collection<Number160> contentKeys, Message.Command command, int maxDirectHits, int maxNoNewInfo, int maxFailures, int parallel, boolean isDigest)
locationKey - the node a route should be found todomainKey - the domain of the network the current node and
locationKey is incontentKeys - keys of the content to search for. Only used if you
perform a getmaxDirectHits - number of direct hits to stop atmaxNoNewInfo - number of nodes asked without new information to stop
atmaxFailures - number of failures to stop atparallel - number of routing requests performed concurrentlyCopyright © 2011. All Rights Reserved.