|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Build and maintain tunnels throughout the network.
Method Summary | |
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. |
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 |
int |
getInboundClientTunnelCount()
how many free inbound client tunnels do we have available? |
TunnelPoolSettings |
getInboundSettings()
|
TunnelPoolSettings |
getInboundSettings(Hash client)
|
long |
getLastParticipatingExpiration()
When does the last tunnel we are participating in expire? |
int |
getOutboundClientTunnelCount()
how many outbound client tunnels do we have available? |
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? |
TunnelInfo |
getTunnelInfo(TunnelId id)
Retrieve the information related to a particular tunnel |
boolean |
isInUse(Hash peer)
True if the peer currently part of a tunnel |
TunnelInfo |
selectInboundTunnel()
pick an inbound tunnel not bound to a particular destination |
TunnelInfo |
selectInboundTunnel(Hash destination)
pick an inbound tunnel bound to the given destination |
TunnelInfo |
selectOutboundTunnel()
pick an outbound tunnel not bound to a particular destination |
TunnelInfo |
selectOutboundTunnel(Hash destination)
pick an outbound tunnel bound to the given destination |
void |
setInboundSettings(Hash client,
TunnelPoolSettings settings)
|
void |
setInboundSettings(TunnelPoolSettings settings)
|
void |
setOutboundSettings(Hash client,
TunnelPoolSettings settings)
|
void |
setOutboundSettings(TunnelPoolSettings settings)
|
Methods inherited from interface net.i2p.router.Service |
renderStatusHTML, restart, shutdown, startup |
Method Detail |
public TunnelInfo getTunnelInfo(TunnelId id)
id
- the tunnelId as seen at the gatewaypublic TunnelInfo selectInboundTunnel()
public TunnelInfo selectInboundTunnel(Hash destination)
public TunnelInfo selectOutboundTunnel()
public TunnelInfo selectOutboundTunnel(Hash destination)
public boolean isInUse(Hash peer)
public int getParticipatingCount()
public int getFreeTunnelCount()
public int getOutboundTunnelCount()
public int getInboundClientTunnelCount()
public int getOutboundClientTunnelCount()
public long getLastParticipatingExpiration()
public int getInboundBuildQueueSize()
public void buildTunnels(Destination client, ClientTunnelSettings settings)
public TunnelPoolSettings getInboundSettings()
public TunnelPoolSettings getOutboundSettings()
public TunnelPoolSettings getInboundSettings(Hash client)
public TunnelPoolSettings getOutboundSettings(Hash client)
public void setInboundSettings(TunnelPoolSettings settings)
public void setOutboundSettings(TunnelPoolSettings settings)
public void setInboundSettings(Hash client, TunnelPoolSettings settings)
public void setOutboundSettings(Hash client, TunnelPoolSettings settings)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |