net.i2p.router.tunnel.pool
Class PooledTunnelCreatorConfig

java.lang.Object
  extended bynet.i2p.router.tunnel.TunnelCreatorConfig
      extended bynet.i2p.router.tunnel.pool.PooledTunnelCreatorConfig
All Implemented Interfaces:
TunnelInfo

public class PooledTunnelCreatorConfig
extends TunnelCreatorConfig


Constructor Summary
PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound)
          Creates a new instance of PooledTunnelCreatorConfig
PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination)
           
 
Method Summary
 boolean getTunnelFailed()
           
 TunnelPool getTunnelPool()
           
 void setExpireJob(ExpireJob job)
           
 void setRebuildJob(RebuildJob job)
           
 void setTestJob(TestJob job)
           
 void setTunnelPool(TunnelPool pool)
           
 void testSuccessful(int ms)
          take note that the tunnel was able to measurably Do Good in the given time
 void tunnelFailed()
          The tunnel failed, so stop using it
 
Methods inherited from class net.i2p.router.tunnel.TunnelCreatorConfig
getConfig, getDestination, getExpiration, getLength, getPeer, getProcessedMessagesCount, getReceiveTunnelId, getSendTunnelId, incrementProcessedMessages, isInbound, setExpiration, setPeer, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PooledTunnelCreatorConfig

public PooledTunnelCreatorConfig(RouterContext ctx,
                                 int length,
                                 boolean isInbound)
Creates a new instance of PooledTunnelCreatorConfig


PooledTunnelCreatorConfig

public PooledTunnelCreatorConfig(RouterContext ctx,
                                 int length,
                                 boolean isInbound,
                                 Hash destination)
Method Detail

testSuccessful

public void testSuccessful(int ms)
Description copied from interface: TunnelInfo
take note that the tunnel was able to measurably Do Good in the given time

Specified by:
testSuccessful in interface TunnelInfo
Overrides:
testSuccessful in class TunnelCreatorConfig

tunnelFailed

public void tunnelFailed()
The tunnel failed, so stop using it


getTunnelFailed

public boolean getTunnelFailed()

setTunnelPool

public void setTunnelPool(TunnelPool pool)

getTunnelPool

public TunnelPool getTunnelPool()

setTestJob

public void setTestJob(TestJob job)

setRebuildJob

public void setRebuildJob(RebuildJob job)

setExpireJob

public void setExpireJob(ExpireJob job)