Rice Pastry API

rice.pastry.transport
Class LeafSetNHStrategy

java.lang.Object
  extended by rice.pastry.transport.LeafSetNHStrategy
All Implemented Interfaces:
NextHopStrategy<MultiInetSocketAddress>

public class LeafSetNHStrategy
extends java.lang.Object
implements NextHopStrategy<MultiInetSocketAddress>


Constructor Summary
LeafSetNHStrategy()
           
 
Method Summary
 java.util.Collection<MultiInetSocketAddress> getNextHops(MultiInetSocketAddress destination)
           
 void setLeafSet(LeafSet ls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeafSetNHStrategy

public LeafSetNHStrategy()
Method Detail

setLeafSet

public void setLeafSet(LeafSet ls)

getNextHops

public java.util.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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection