public class DummyTunnelManagerFacade extends Object implements TunnelManagerFacade
| Constructor and Description |
|---|
DummyTunnelManagerFacade() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAlias(net.i2p.data.Destination dest,
ClientTunnelSettings settings,
net.i2p.data.Destination existingClient)
Add another destination to the same tunnels.
|
void |
buildTunnels(net.i2p.data.Destination client,
ClientTunnelSettings settings)
the client connected (or updated their settings), so make sure we have
the tunnels for them, and whenever necessary, ask them to authorize
leases.
|
void |
fail(net.i2p.data.Hash peer) |
int |
getFreeTunnelCount()
how many free inbound tunnels do we have available?
|
int |
getInboundBuildQueueSize()
count how many inbound tunnel requests we have received but not yet processed
|
Map<net.i2p.data.Hash,TunnelPool> |
getInboundClientPools()
for TunnelRenderer in router console
|
int |
getInboundClientTunnelCount()
how many free inbound client tunnels do we have available?
|
TunnelPool |
getInboundExploratoryPool()
for TunnelRenderer in router console
|
TunnelPool |
getInboundPool(net.i2p.data.Hash client) |
TunnelPoolSettings |
getInboundSettings() |
TunnelPoolSettings |
getInboundSettings(net.i2p.data.Hash client) |
long |
getLastParticipatingExpiration()
When does the last tunnel we are participating in expire?
|
Map<net.i2p.data.Hash,TunnelPool> |
getOutboundClientPools()
for TunnelRenderer in router console
|
int |
getOutboundClientTunnelCount()
how many outbound client tunnels do we have available?
|
int |
getOutboundClientTunnelCount(net.i2p.data.Hash destination)
how many outbound client tunnels in this pool?
|
TunnelPool |
getOutboundExploratoryPool()
for TunnelRenderer in router console
|
TunnelPool |
getOutboundPool(net.i2p.data.Hash client) |
TunnelPoolSettings |
getOutboundSettings() |
TunnelPoolSettings |
getOutboundSettings(net.i2p.data.Hash client) |
int |
getOutboundTunnelCount()
how many outbound tunnels do we have available?
|
int |
getParticipatingCount()
how many tunnels are we participating in?
|
double |
getShareRatio() |
TunnelInfo |
getTunnelInfo(net.i2p.data.TunnelId id)
Deprecated.
unused
|
boolean |
isValidTunnel(net.i2p.data.Hash client,
TunnelInfo tunnel)
Is a tunnel a valid member of the pool?
|
void |
listPools(List<TunnelPool> out)
for TunnelRenderer in router console
|
void |
removeAlias(net.i2p.data.Destination dest)
Remove another destination to the same tunnels.
|
void |
removeTunnels(net.i2p.data.Destination client)
Must be called AFTER deregistration by the client manager.
|
void |
renderStatusHTML(Writer out) |
void |
restart()
Perform a soft restart.
|
TunnelInfo |
selectInboundExploratoryTunnel(net.i2p.data.Hash closestTo)
Pick the inbound exploratory tunnel with the gateway closest to the given hash.
|
TunnelInfo |
selectInboundTunnel()
Pick a random inbound exploratory tunnel
|
TunnelInfo |
selectInboundTunnel(net.i2p.data.Hash destination)
Pick a random inbound tunnel from the given destination's pool
|
TunnelInfo |
selectInboundTunnel(net.i2p.data.Hash destination,
net.i2p.data.Hash closestTo)
Pick the inbound tunnel with the gateway closest to the given hash
from the given destination's pool.
|
TunnelInfo |
selectOutboundExploratoryTunnel(net.i2p.data.Hash closestTo)
Pick the outbound exploratory tunnel with the endpoint closest to the given hash.
|
TunnelInfo |
selectOutboundTunnel()
Pick a random outbound exploratory tunnel
|
TunnelInfo |
selectOutboundTunnel(net.i2p.data.Hash destination)
Pick a random outbound tunnel from the given destination's pool
|
TunnelInfo |
selectOutboundTunnel(net.i2p.data.Hash destination,
net.i2p.data.Hash closestTo)
Pick the outbound tunnel with the endpoint closest to the given hash
from the given destination's pool.
|
Set<net.i2p.data.Hash> |
selectPeersInTooManyTunnels() |
void |
setInboundSettings(net.i2p.data.Hash client,
TunnelPoolSettings settings) |
void |
setInboundSettings(TunnelPoolSettings settings) |
void |
setOutboundSettings(net.i2p.data.Hash client,
TunnelPoolSettings settings) |
void |
setOutboundSettings(TunnelPoolSettings settings) |
void |
shutdown()
Instruct the service that the router is shutting down and that it should do
whatever is necessary to go down gracefully.
|
void |
startup()
Instruct the service that it should start normal operation.
|
@Deprecated public TunnelInfo getTunnelInfo(net.i2p.data.TunnelId id)
TunnelManagerFacadegetTunnelInfo in interface TunnelManagerFacadeid - the tunnelId as seen at the gatewaypublic TunnelInfo selectInboundTunnel()
TunnelManagerFacadeselectInboundTunnel in interface TunnelManagerFacadepublic TunnelInfo selectInboundTunnel(net.i2p.data.Hash destination)
TunnelManagerFacadeselectInboundTunnel in interface TunnelManagerFacadedestination - if null, returns inbound exploratory tunnelpublic TunnelInfo selectOutboundTunnel()
TunnelManagerFacadeselectOutboundTunnel in interface TunnelManagerFacadepublic TunnelInfo selectOutboundTunnel(net.i2p.data.Hash destination)
TunnelManagerFacadeselectOutboundTunnel in interface TunnelManagerFacadedestination - if null, returns outbound exploratory tunnelpublic TunnelInfo selectInboundExploratoryTunnel(net.i2p.data.Hash closestTo)
TunnelManagerFacadeselectInboundExploratoryTunnel in interface TunnelManagerFacadeclosestTo - non-nullpublic TunnelInfo selectInboundTunnel(net.i2p.data.Hash destination, net.i2p.data.Hash closestTo)
TunnelManagerFacadeselectInboundTunnel in interface TunnelManagerFacadedestination - if null, returns inbound exploratory tunnelclosestTo - non-nullpublic TunnelInfo selectOutboundExploratoryTunnel(net.i2p.data.Hash closestTo)
TunnelManagerFacadeselectOutboundExploratoryTunnel in interface TunnelManagerFacadeclosestTo - non-nullpublic TunnelInfo selectOutboundTunnel(net.i2p.data.Hash destination, net.i2p.data.Hash closestTo)
TunnelManagerFacadeselectOutboundTunnel in interface TunnelManagerFacadedestination - if null, returns outbound exploratory tunnelclosestTo - non-nullpublic boolean isValidTunnel(net.i2p.data.Hash client,
TunnelInfo tunnel)
TunnelManagerFacadeisValidTunnel in interface TunnelManagerFacadepublic int getParticipatingCount()
TunnelManagerFacadegetParticipatingCount in interface TunnelManagerFacadepublic int getFreeTunnelCount()
TunnelManagerFacadegetFreeTunnelCount in interface TunnelManagerFacadepublic int getOutboundTunnelCount()
TunnelManagerFacadegetOutboundTunnelCount in interface TunnelManagerFacadepublic int getInboundClientTunnelCount()
TunnelManagerFacadegetInboundClientTunnelCount in interface TunnelManagerFacadepublic double getShareRatio()
getShareRatio in interface TunnelManagerFacadepublic int getOutboundClientTunnelCount()
TunnelManagerFacadegetOutboundClientTunnelCount in interface TunnelManagerFacadepublic int getOutboundClientTunnelCount(net.i2p.data.Hash destination)
TunnelManagerFacadegetOutboundClientTunnelCount in interface TunnelManagerFacadepublic long getLastParticipatingExpiration()
TunnelManagerFacadegetLastParticipatingExpiration in interface TunnelManagerFacadepublic void buildTunnels(net.i2p.data.Destination client,
ClientTunnelSettings settings)
TunnelManagerFacadebuildTunnels in interface TunnelManagerFacadepublic void removeTunnels(net.i2p.data.Destination client)
TunnelManagerFacaderemoveTunnels in interface TunnelManagerFacadepublic boolean addAlias(net.i2p.data.Destination dest,
ClientTunnelSettings settings,
net.i2p.data.Destination existingClient)
TunnelManagerFacadeaddAlias in interface TunnelManagerFacadepublic void removeAlias(net.i2p.data.Destination dest)
TunnelManagerFacaderemoveAlias in interface TunnelManagerFacadepublic TunnelPoolSettings getInboundSettings()
getInboundSettings in interface TunnelManagerFacadepublic TunnelPoolSettings getOutboundSettings()
getOutboundSettings in interface TunnelManagerFacadepublic TunnelPoolSettings getInboundSettings(net.i2p.data.Hash client)
getInboundSettings in interface TunnelManagerFacadepublic TunnelPoolSettings getOutboundSettings(net.i2p.data.Hash client)
getOutboundSettings in interface TunnelManagerFacadepublic void setInboundSettings(TunnelPoolSettings settings)
setInboundSettings in interface TunnelManagerFacadepublic void setOutboundSettings(TunnelPoolSettings settings)
setOutboundSettings in interface TunnelManagerFacadepublic void setInboundSettings(net.i2p.data.Hash client,
TunnelPoolSettings settings)
setInboundSettings in interface TunnelManagerFacadepublic void setOutboundSettings(net.i2p.data.Hash client,
TunnelPoolSettings settings)
setOutboundSettings in interface TunnelManagerFacadepublic int getInboundBuildQueueSize()
TunnelManagerFacadegetInboundBuildQueueSize in interface TunnelManagerFacadepublic Set<net.i2p.data.Hash> selectPeersInTooManyTunnels()
selectPeersInTooManyTunnels in interface TunnelManagerFacadepublic void renderStatusHTML(Writer out) throws IOException
renderStatusHTML in interface ServiceIOExceptionpublic void restart()
Servicepublic void shutdown()
Servicepublic void startup()
Servicepublic void listPools(List<TunnelPool> out)
TunnelManagerFacadelistPools in interface TunnelManagerFacadepublic Map<net.i2p.data.Hash,TunnelPool> getInboundClientPools()
TunnelManagerFacadegetInboundClientPools in interface TunnelManagerFacadepublic Map<net.i2p.data.Hash,TunnelPool> getOutboundClientPools()
TunnelManagerFacadegetOutboundClientPools in interface TunnelManagerFacadepublic TunnelPool getInboundExploratoryPool()
TunnelManagerFacadegetInboundExploratoryPool in interface TunnelManagerFacadepublic TunnelPool getOutboundExploratoryPool()
TunnelManagerFacadegetOutboundExploratoryPool in interface TunnelManagerFacadepublic void fail(net.i2p.data.Hash peer)
fail in interface TunnelManagerFacadepublic TunnelPool getInboundPool(net.i2p.data.Hash client)
getInboundPool in interface TunnelManagerFacadepublic TunnelPool getOutboundPool(net.i2p.data.Hash client)
getOutboundPool in interface TunnelManagerFacade