public interface TunnelManagerFacade extends Service
Modifier and Type | Method and Description |
---|---|
boolean |
addAlias(Destination dest,
ClientTunnelSettings settings,
Destination existingClient)
Add another destination to the same tunnels.
|
void |
buildTunnels(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(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<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
|
TunnelPoolSettings |
getInboundSettings() |
TunnelPoolSettings |
getInboundSettings(Hash client) |
long |
getLastParticipatingExpiration()
When does the last tunnel we are participating in expire?
|
Map<Hash,TunnelPool> |
getOutboundClientPools()
for TunnelRenderer in router console
|
int |
getOutboundClientTunnelCount()
how many outbound client tunnels do we have available?
|
int |
getOutboundClientTunnelCount(Hash destination)
how many outbound client tunnels in this pool?
|
TunnelPool |
getOutboundExploratoryPool()
for TunnelRenderer in router console
|
TunnelPoolSettings |
getOutboundSettings() |
TunnelPoolSettings |
getOutboundSettings(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(TunnelId id)
Deprecated.
unused
|
boolean |
isValidTunnel(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(Destination dest)
Remove another destination to the same tunnels.
|
TunnelInfo |
selectInboundExploratoryTunnel(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(Hash destination)
Pick a random inbound tunnel from the given destination's pool
|
TunnelInfo |
selectInboundTunnel(Hash destination,
Hash closestTo)
Pick the inbound tunnel with the gateway closest to the given hash
from the given destination's pool.
|
TunnelInfo |
selectOutboundExploratoryTunnel(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(Hash destination)
Pick a random outbound tunnel from the given destination's pool
|
TunnelInfo |
selectOutboundTunnel(Hash destination,
Hash closestTo)
Pick the outbound tunnel with the endpoint closest to the given hash
from the given destination's pool.
|
Set<Hash> |
selectPeersInTooManyTunnels() |
void |
setInboundSettings(Hash client,
TunnelPoolSettings settings) |
void |
setInboundSettings(TunnelPoolSettings settings) |
void |
setOutboundSettings(Hash client,
TunnelPoolSettings settings) |
void |
setOutboundSettings(TunnelPoolSettings settings) |
renderStatusHTML, restart, shutdown, startup
@Deprecated TunnelInfo getTunnelInfo(TunnelId id)
id
- the tunnelId as seen at the gatewayTunnelInfo selectInboundTunnel()
TunnelInfo selectInboundTunnel(Hash destination)
destination
- if null, returns inbound exploratory tunnelTunnelInfo selectOutboundTunnel()
TunnelInfo selectOutboundTunnel(Hash destination)
destination
- if null, returns outbound exploratory tunnelTunnelInfo selectInboundExploratoryTunnel(Hash closestTo)
closestTo
- non-nullTunnelInfo selectInboundTunnel(Hash destination, Hash closestTo)
destination
- if null, returns inbound exploratory tunnelclosestTo
- non-nullTunnelInfo selectOutboundExploratoryTunnel(Hash closestTo)
closestTo
- non-nullTunnelInfo selectOutboundTunnel(Hash destination, Hash closestTo)
destination
- if null, returns outbound exploratory tunnelclosestTo
- non-nullboolean isValidTunnel(Hash client, TunnelInfo tunnel)
int getParticipatingCount()
int getFreeTunnelCount()
int getOutboundTunnelCount()
int getInboundClientTunnelCount()
int getOutboundClientTunnelCount()
int getOutboundClientTunnelCount(Hash destination)
double getShareRatio()
long getLastParticipatingExpiration()
int getInboundBuildQueueSize()
Set<Hash> selectPeersInTooManyTunnels()
void buildTunnels(Destination client, ClientTunnelSettings settings)
boolean addAlias(Destination dest, ClientTunnelSettings settings, Destination existingClient)
IllegalArgumentException
- if notvoid removeAlias(Destination dest)
TunnelPoolSettings getInboundSettings()
TunnelPoolSettings getOutboundSettings()
TunnelPoolSettings getInboundSettings(Hash client)
TunnelPoolSettings getOutboundSettings(Hash client)
void setInboundSettings(TunnelPoolSettings settings)
void setOutboundSettings(TunnelPoolSettings settings)
void setInboundSettings(Hash client, TunnelPoolSettings settings)
void setOutboundSettings(Hash client, TunnelPoolSettings settings)
void listPools(List<TunnelPool> out)
Map<Hash,TunnelPool> getInboundClientPools()
Map<Hash,TunnelPool> getOutboundClientPools()
TunnelPool getInboundExploratoryPool()
TunnelPool getOutboundExploratoryPool()
void fail(Hash peer)