Service, TunnelManagerFacadepublic class DummyTunnelManagerFacade extends java.lang.Object implements TunnelManagerFacade
| コンストラクタ | 説明 |
|---|---|
DummyTunnelManagerFacade() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
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
|
java.util.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
|
TunnelPool |
getInboundPool(Hash client) |
|
TunnelPoolSettings |
getInboundSettings() |
|
TunnelPoolSettings |
getInboundSettings(Hash client) |
|
long |
getLastParticipatingExpiration() |
When does the last tunnel we are participating in expire?
|
java.util.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
|
TunnelPool |
getOutboundPool(Hash client) |
|
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) |
推奨されていません。
unused
|
boolean |
isValidTunnel(Hash client,
TunnelInfo tunnel) |
Is a tunnel a valid member of the pool?
|
void |
listPools(java.util.List<TunnelPool> out) |
for TunnelRenderer in router console
|
void |
removeAlias(Destination dest) |
Remove another destination to the same tunnels.
|
void |
renderStatusHTML(java.io.Writer out) |
|
void |
restart() |
Perform a soft restart.
|
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.
|
java.util.Set<Hash> |
selectPeersInTooManyTunnels() |
|
void |
setInboundSettings(Hash client,
TunnelPoolSettings settings) |
|
void |
setInboundSettings(TunnelPoolSettings settings) |
|
void |
setOutboundSettings(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(TunnelId id)
TunnelManagerFacadegetTunnelInfo インタフェース内 TunnelManagerFacadeid - the tunnelId as seen at the gatewaypublic TunnelInfo selectInboundTunnel()
TunnelManagerFacadeselectInboundTunnel インタフェース内 TunnelManagerFacadepublic TunnelInfo selectInboundTunnel(Hash destination)
TunnelManagerFacadeselectInboundTunnel インタフェース内 TunnelManagerFacadedestination - if null, returns inbound exploratory tunnelpublic TunnelInfo selectOutboundTunnel()
TunnelManagerFacadeselectOutboundTunnel インタフェース内 TunnelManagerFacadepublic TunnelInfo selectOutboundTunnel(Hash destination)
TunnelManagerFacadeselectOutboundTunnel インタフェース内 TunnelManagerFacadedestination - if null, returns outbound exploratory tunnelpublic TunnelInfo selectInboundExploratoryTunnel(Hash closestTo)
TunnelManagerFacadeselectInboundExploratoryTunnel インタフェース内 TunnelManagerFacadeclosestTo - non-nullpublic TunnelInfo selectInboundTunnel(Hash destination, Hash closestTo)
TunnelManagerFacadeselectInboundTunnel インタフェース内 TunnelManagerFacadedestination - if null, returns inbound exploratory tunnelclosestTo - non-nullpublic TunnelInfo selectOutboundExploratoryTunnel(Hash closestTo)
TunnelManagerFacadeselectOutboundExploratoryTunnel インタフェース内 TunnelManagerFacadeclosestTo - non-nullpublic TunnelInfo selectOutboundTunnel(Hash destination, Hash closestTo)
TunnelManagerFacadeselectOutboundTunnel インタフェース内 TunnelManagerFacadedestination - if null, returns outbound exploratory tunnelclosestTo - non-nullpublic boolean isValidTunnel(Hash client, TunnelInfo tunnel)
TunnelManagerFacadeisValidTunnel インタフェース内 TunnelManagerFacadepublic int getParticipatingCount()
TunnelManagerFacadegetParticipatingCount インタフェース内 TunnelManagerFacadepublic int getFreeTunnelCount()
TunnelManagerFacadegetFreeTunnelCount インタフェース内 TunnelManagerFacadepublic int getOutboundTunnelCount()
TunnelManagerFacadegetOutboundTunnelCount インタフェース内 TunnelManagerFacadepublic int getInboundClientTunnelCount()
TunnelManagerFacadegetInboundClientTunnelCount インタフェース内 TunnelManagerFacadepublic double getShareRatio()
getShareRatio インタフェース内 TunnelManagerFacadepublic int getOutboundClientTunnelCount()
TunnelManagerFacadegetOutboundClientTunnelCount インタフェース内 TunnelManagerFacadepublic int getOutboundClientTunnelCount(Hash destination)
TunnelManagerFacadegetOutboundClientTunnelCount インタフェース内 TunnelManagerFacadepublic long getLastParticipatingExpiration()
TunnelManagerFacadegetLastParticipatingExpiration インタフェース内 TunnelManagerFacadepublic void buildTunnels(Destination client, ClientTunnelSettings settings)
TunnelManagerFacadebuildTunnels インタフェース内 TunnelManagerFacadepublic boolean addAlias(Destination dest, ClientTunnelSettings settings, Destination existingClient)
TunnelManagerFacadeaddAlias インタフェース内 TunnelManagerFacadepublic void removeAlias(Destination dest)
TunnelManagerFacaderemoveAlias インタフェース内 TunnelManagerFacadepublic TunnelPoolSettings getInboundSettings()
getInboundSettings インタフェース内 TunnelManagerFacadepublic TunnelPoolSettings getOutboundSettings()
getOutboundSettings インタフェース内 TunnelManagerFacadepublic TunnelPoolSettings getInboundSettings(Hash client)
getInboundSettings インタフェース内 TunnelManagerFacadepublic TunnelPoolSettings getOutboundSettings(Hash client)
getOutboundSettings インタフェース内 TunnelManagerFacadepublic void setInboundSettings(TunnelPoolSettings settings)
setInboundSettings インタフェース内 TunnelManagerFacadepublic void setOutboundSettings(TunnelPoolSettings settings)
setOutboundSettings インタフェース内 TunnelManagerFacadepublic void setInboundSettings(Hash client, TunnelPoolSettings settings)
setInboundSettings インタフェース内 TunnelManagerFacadepublic void setOutboundSettings(Hash client, TunnelPoolSettings settings)
setOutboundSettings インタフェース内 TunnelManagerFacadepublic int getInboundBuildQueueSize()
TunnelManagerFacadegetInboundBuildQueueSize インタフェース内 TunnelManagerFacadepublic java.util.Set<Hash> selectPeersInTooManyTunnels()
selectPeersInTooManyTunnels インタフェース内 TunnelManagerFacadepublic void renderStatusHTML(java.io.Writer out)
throws java.io.IOException
renderStatusHTML インタフェース内 Servicejava.io.IOExceptionpublic void restart()
Servicepublic void shutdown()
Servicepublic void startup()
Servicepublic void listPools(java.util.List<TunnelPool> out)
TunnelManagerFacadelistPools インタフェース内 TunnelManagerFacadepublic java.util.Map<Hash,TunnelPool> getInboundClientPools()
TunnelManagerFacadegetInboundClientPools インタフェース内 TunnelManagerFacadepublic java.util.Map<Hash,TunnelPool> getOutboundClientPools()
TunnelManagerFacadegetOutboundClientPools インタフェース内 TunnelManagerFacadepublic TunnelPool getInboundExploratoryPool()
TunnelManagerFacadegetInboundExploratoryPool インタフェース内 TunnelManagerFacadepublic TunnelPool getOutboundExploratoryPool()
TunnelManagerFacadegetOutboundExploratoryPool インタフェース内 TunnelManagerFacadepublic void fail(Hash peer)
fail インタフェース内 TunnelManagerFacadepublic TunnelPool getInboundPool(Hash client)
getInboundPool インタフェース内 TunnelManagerFacadepublic TunnelPool getOutboundPool(Hash client)
getOutboundPool インタフェース内 TunnelManagerFacade