public class AliasedTunnelPool extends TunnelPool
_alive, _context, _log| コンストラクタ | 説明 |
|---|---|
AliasedTunnelPool(RouterContext ctx,
TunnelPoolManager mgr,
TunnelPoolSettings settings,
TunnelPool aliasOf) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
(package private) void |
addTunnel(TunnelInfo info) |
Add to the pool.
|
(package private) void |
buildComplete(PooledTunnelCreatorConfig cfg) |
Remove from the _inprogress list
|
(package private) boolean |
buildFallback() |
|
(package private) PooledTunnelCreatorConfig |
configureNewTunnel() |
|
(package private) int |
countHowManyToBuild() |
Gather the data to see how many tunnels to build, and then actually compute that value (delegated to
the countHowManyToBuild function below)
|
long |
getLifetimeProcessed() |
|
TunnelInfo |
getTunnel(TunnelId gatewayId) |
|
boolean |
isAlive() |
Is this pool running AND either exploratory, or tracked by the client manager?
A pool will be alive but not tracked after the client manager removes it
but before all the tunnels have expired.
|
java.util.List<PooledTunnelCreatorConfig> |
listPending() |
list of tunnelInfo instances of tunnels currently being built
|
java.util.List<TunnelInfo> |
listTunnels() |
Return a list of tunnels in the pool
|
protected LeaseSet |
locked_buildNewLeaseSet() |
Build a leaseSet with the required tunnels that aren't about to expire.
|
(package private) boolean |
needFallback() |
Do we really need more fallbacks?
Used to prevent a zillion of them
|
(package private) void |
refreshLeaseSet() |
noop for outbound and exploratory
|
(package private) void |
removeTunnel(TunnelInfo info) |
Remove from the pool.
|
(package private) TunnelInfo |
selectTunnel() |
Pull a random tunnel out of the pool.
|
(package private) TunnelInfo |
selectTunnel(Hash closestTo) |
Return the tunnel from the pool that is XOR-closet to the target.
|
(package private) void |
shutdown() |
|
int |
size() |
duplicate of getTunnelCount(), let's pick one
|
(package private) void |
startup() |
Warning, this may be called more than once
(without an intervening shutdown()) if the
tunnel is stopped and then restarted by the client manager with the same
Destination (i.e.
|
java.lang.String |
toString() |
|
(package private) void |
tunnelFailed(TunnelInfo cfg) |
Remove the tunnel and blame all the peers (not necessarily equally).
|
(package private) void |
tunnelFailed(TunnelInfo cfg,
Hash blamePeer) |
Remove the tunnel and blame only one peer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSettings, getTunnelCount, setSettingsAliasedTunnelPool(RouterContext ctx, TunnelPoolManager mgr, TunnelPoolSettings settings, TunnelPool aliasOf)
void startup()
TunnelPoolstartup クラス内 TunnelPoolvoid shutdown()
shutdown クラス内 TunnelPoolTunnelInfo selectTunnel()
TunnelPoolselectTunnel クラス内 TunnelPoolTunnelInfo selectTunnel(Hash closestTo)
TunnelPoolselectTunnel クラス内 TunnelPoolpublic TunnelInfo getTunnel(TunnelId gatewayId)
getTunnel クラス内 TunnelPoolpublic java.util.List<TunnelInfo> listTunnels()
TunnelPoollistTunnels クラス内 TunnelPoolboolean needFallback()
TunnelPoolneedFallback クラス内 TunnelPoolpublic java.util.List<PooledTunnelCreatorConfig> listPending()
TunnelPoollistPending クラス内 TunnelPoolpublic boolean isAlive()
TunnelPoolisAlive クラス内 TunnelPoolpublic int size()
TunnelPoolsize クラス内 TunnelPoolvoid addTunnel(TunnelInfo info)
TunnelPooladdTunnel クラス内 TunnelPoolvoid removeTunnel(TunnelInfo info)
TunnelPoolremoveTunnel クラス内 TunnelPoolvoid tunnelFailed(TunnelInfo cfg)
TunnelPooltunnelFailed クラス内 TunnelPoolvoid tunnelFailed(TunnelInfo cfg, Hash blamePeer)
TunnelPooltunnelFailed クラス内 TunnelPoolvoid refreshLeaseSet()
TunnelPoolrefreshLeaseSet クラス内 TunnelPoolboolean buildFallback()
buildFallback クラス内 TunnelPoolprotected LeaseSet locked_buildNewLeaseSet()
TunnelPoollocked_buildNewLeaseSet クラス内 TunnelPoolpublic long getLifetimeProcessed()
getLifetimeProcessed クラス内 TunnelPoolint countHowManyToBuild()
TunnelPoolcountHowManyToBuild クラス内 TunnelPoolPooledTunnelCreatorConfig configureNewTunnel()
configureNewTunnel クラス内 TunnelPoolvoid buildComplete(PooledTunnelCreatorConfig cfg)
TunnelPoolbuildComplete クラス内 TunnelPoolpublic java.lang.String toString()
toString クラス内 TunnelPool