rice.pastry.routing
Interface Router

All Known Implementing Classes:
RapidRerouter, StandardRouter

public interface Router

Router is no longer just an application. It is privileged.

Author:
Jeff Hoye

Method Summary
 Iterator<NodeHandle> getBestRoutingCandidates(Id key)
          Returns an ordered list of the best candidates for the next to the key.
 void route(RouteMessage rm)
          Send the RouteMessage based on the Pastry Algorithm
 

Method Detail

route

void route(RouteMessage rm)
Send the RouteMessage based on the Pastry Algorithm

Parameters:
rm -

getBestRoutingCandidates

Iterator<NodeHandle> getBestRoutingCandidates(Id key)
Returns an ordered list of the best candidates for the next to the key. Always starts with a node that matches an additional prefix, if it is available.

Parameters:
key -
Returns:


Copyright © 2010. All Rights Reserved.