rice.pastry.transport
Class LeafSetNHStrategy
java.lang.Object
rice.pastry.transport.LeafSetNHStrategy
- All Implemented Interfaces:
- NextHopStrategy<MultiInetSocketAddress>
public class LeafSetNHStrategy
- extends Object
- implements NextHopStrategy<MultiInetSocketAddress>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeafSetNHStrategy
public LeafSetNHStrategy(LeafSet leafSet)
getNextHops
public Collection<MultiInetSocketAddress> getNextHops(MultiInetSocketAddress destination)
- Specified by:
getNextHops in interface NextHopStrategy<MultiInetSocketAddress>
- Returns:
- good next candidates (random nodes that we suspect are alive are a good start)
to reach the destination
Copyright © 2010. All Rights Reserved.