|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.pool.TunnelPeerSelector
public abstract class TunnelPeerSelector
Coordinate the selection of peers to go into a tunnel for one particular pool.
Constructor Summary | |
---|---|
TunnelPeerSelector()
|
Method Summary | |
---|---|
protected boolean |
filterSlow(RouterContext ctx,
boolean isInbound,
boolean isExploratory)
|
protected boolean |
filterUnreachable(RouterContext ctx,
boolean isInbound,
boolean isExploratory)
|
protected boolean |
filterUptime(RouterContext ctx,
boolean isInbound,
boolean isExploratory)
do we want to skip peers who haven't been up for long? |
java.util.Set |
getExclude(RouterContext ctx,
boolean isInbound,
boolean isExploratory)
Pick peers that we want to avoid |
protected int |
getLength(RouterContext ctx,
TunnelPoolSettings settings)
|
protected java.util.List |
selectExplicit(RouterContext ctx,
TunnelPoolSettings settings,
int length)
|
abstract java.util.List |
selectPeers(RouterContext ctx,
TunnelPoolSettings settings)
Which peers should go into the next tunnel for the given settings? |
static boolean |
shouldExclude(RouterContext ctx,
RouterInfo peer)
|
protected boolean |
shouldSelectExplicit(TunnelPoolSettings settings)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TunnelPeerSelector()
Method Detail |
---|
public abstract java.util.List selectPeers(RouterContext ctx, TunnelPoolSettings settings)
protected int getLength(RouterContext ctx, TunnelPoolSettings settings)
protected boolean shouldSelectExplicit(TunnelPoolSettings settings)
protected java.util.List selectExplicit(RouterContext ctx, TunnelPoolSettings settings, int length)
public java.util.Set getExclude(RouterContext ctx, boolean isInbound, boolean isExploratory)
public static boolean shouldExclude(RouterContext ctx, RouterInfo peer)
protected boolean filterUnreachable(RouterContext ctx, boolean isInbound, boolean isExploratory)
protected boolean filterSlow(RouterContext ctx, boolean isInbound, boolean isExploratory)
protected boolean filterUptime(RouterContext ctx, boolean isInbound, boolean isExploratory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |