net.i2p.router.tunnel.pool
Class ExploratoryPeerSelector

java.lang.Object
  extended by net.i2p.router.tunnel.pool.TunnelPeerSelector
      extended by net.i2p.router.tunnel.pool.ExploratoryPeerSelector

 class ExploratoryPeerSelector
extends TunnelPeerSelector

Pick peers randomly out of the not-failing pool, and put them into a tunnel ordered by XOR distance from a random key.


Field Summary
 
Fields inherited from class net.i2p.router.tunnel.pool.TunnelPeerSelector
ctx
 
Constructor Summary
ExploratoryPeerSelector(RouterContext context)
           
 
Method Summary
 List<Hash> selectPeers(TunnelPoolSettings settings)
          Which peers should go into the next tunnel for the given settings?
 
Methods inherited from class net.i2p.router.tunnel.pool.TunnelPeerSelector
filterSlow, filterUnreachable, filterUptime, getExclude, getLength, orderPeers, selectExplicit, shouldExclude, shouldSelectExplicit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExploratoryPeerSelector

public ExploratoryPeerSelector(RouterContext context)
Method Detail

selectPeers

public List<Hash> selectPeers(TunnelPoolSettings settings)
Description copied from class: TunnelPeerSelector
Which peers should go into the next tunnel for the given settings?

Specified by:
selectPeers in class TunnelPeerSelector
Returns:
ordered list of Hash objects (one per peer) specifying what order they should appear in a tunnel (ENDPOINT FIRST). This includes the local router in the list. If there are no tunnels or peers to build through, and the settings reject 0 hop tunnels, this will return null.