Package net.i2p.router.tunnel.pool
Class PooledTunnelCreatorConfig
- java.lang.Object
-
- net.i2p.router.tunnel.TunnelCreatorConfig
-
- net.i2p.router.tunnel.pool.PooledTunnelCreatorConfig
-
- All Implemented Interfaces:
TunnelInfo
public class PooledTunnelCreatorConfig extends TunnelCreatorConfig
Data about a tunnel we created
-
-
Field Summary
-
Fields inherited from class net.i2p.router.tunnel.TunnelCreatorConfig
_context, REPLY_IV_LENGTH
-
-
Constructor Summary
Constructors Constructor Description PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination, TunnelPool pool)
Creates a new instance of PooledTunnelCreatorConfig
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Properties
getOptions()
TunnelId
getPairedGW()
The ID of the gateway of the paired tunnel used to send/receive the build requestTunnelPool
getTunnelPool()
void
setPairedGW(TunnelId gw)
The ID of the gateway of the paired tunnel used to send/receive the build requestvoid
testJobSuccessful(int ms)
called from TestJobboolean
tunnelFailed()
The tunnel failed a test, so (maybe) stop using itvoid
tunnelFailedFirstHop()
We failed to contact the first hop for an outbound tunnel, so immediately stop using it.-
Methods inherited from class net.i2p.router.tunnel.TunnelCreatorConfig
getAESReplyIV, getAESReplyKey, getBlankHash, getChaChaReplyAD, getChaChaReplyKey, getConfig, getDestination, getEndpoint, getExpiration, getFarEnd, getGarlicReplyKeys, getGateway, getLength, getPeer, getPriority, getProcessedMessagesCount, getReceiveTunnelId, getReplyMessageId, getReplyOrder, getSendTunnelId, getTunnelFailed, getTunnelFailures, getVerifiedBytesTransferred, incrementProcessedMessages, incrementVerifiedBytesTransferred, isEC, isInbound, setAESReplyKeys, setBlankHash, setChaChaReplyKeys, setExpiration, setGarlicReplyKeys, setPeer, setPriority, setReplyMessageId, setReplyOrder, setReused, testSuccessful, toString, toStringFull, tunnelFailedCompletely, wasReused
-
-
-
-
Constructor Detail
-
PooledTunnelCreatorConfig
public PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination, TunnelPool pool)
Creates a new instance of PooledTunnelCreatorConfig- Parameters:
destination
- may be nullpool
- non-null
-
-
Method Detail
-
testJobSuccessful
public void testJobSuccessful(int ms)
called from TestJob
-
tunnelFailed
public boolean tunnelFailed()
The tunnel failed a test, so (maybe) stop using it- Overrides:
tunnelFailed
in classTunnelCreatorConfig
- Returns:
- false if we stopped using it, true if still ok
-
tunnelFailedFirstHop
public void tunnelFailedFirstHop()
We failed to contact the first hop for an outbound tunnel, so immediately stop using it. For outbound non-zero-hop tunnels only.- Since:
- 0.9.53
-
getOptions
public Properties getOptions()
- Overrides:
getOptions
in classTunnelCreatorConfig
- Returns:
- non-null
-
getTunnelPool
public TunnelPool getTunnelPool()
- Returns:
- non-null
-
setPairedGW
public void setPairedGW(TunnelId gw)
The ID of the gateway of the paired tunnel used to send/receive the build request- Parameters:
gw
- for paired inbound, the GW rcv tunnel ID; for paired outbound, the GW send tunnel ID.- Since:
- 0.9.53
-
getPairedGW
public TunnelId getPairedGW()
The ID of the gateway of the paired tunnel used to send/receive the build request- Returns:
- for paired inbound, the GW rcv tunnel ID; for paired outbound, the GW send tunnel ID. null if not previously set
- Since:
- 0.9.53
-
-