public class DistributedRouting extends Object
| Constructor and Description |
|---|
DistributedRouting(PeerBean peerBean,
NeighborRPC neighbors)
The routing process involves multiple RPCs, mostly UDP based.
|
| Modifier and Type | Method and Description |
|---|---|
FutureDone<Pair<FutureRouting,FutureRouting>> |
bootstrap(Collection<PeerAddress> peerAddresses,
RoutingBuilder routingBuilder,
ChannelCreator cc)
Bootstraps to the given peerAddresses, i.e.
|
PeerMap |
peerMap() |
FutureRouting |
quit(RoutingBuilder routingBuilder,
ChannelCreator cc) |
FutureRouting |
route(RoutingBuilder routingBuilder,
Message.Type type,
ChannelCreator cc)
Looks for a route to the given locationKey.
|
public DistributedRouting(PeerBean peerBean, NeighborRPC neighbors)
peerBean - The peer beanneighbors - The neighbor RPC that will be issuespublic FutureDone<Pair<FutureRouting,FutureRouting>> bootstrap(Collection<PeerAddress> peerAddresses, RoutingBuilder routingBuilder, ChannelCreator cc)
peerAddresses - the node to which bootstrap should be performed toroutingBuilder - All relevant information for the routing processcc - The channel creatorpublic FutureRouting quit(RoutingBuilder routingBuilder, ChannelCreator cc)
public FutureRouting route(RoutingBuilder routingBuilder, Message.Type type, ChannelCreator cc)
routingBuilder - All relevant information for the routing processtype - The type of the routing, there can at most four typescc - The channel creatorpublic PeerMap peerMap()
Copyright © 2014. All rights reserved.