|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.DummyTunnelManagerFacade
class DummyTunnelManagerFacade
Constructor Summary | |
---|---|
DummyTunnelManagerFacade()
|
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 |
boolean |
isValidTunnel(Hash client,
TunnelInfo tunnel)
Is a tunnel a valid member of the pool? |
void |
renderStatusHTML(java.io.Writer out)
|
void |
restart()
Perform a soft restart. |
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)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DummyTunnelManagerFacade()
Method Detail |
---|
public TunnelInfo getTunnelInfo(TunnelId id)
TunnelManagerFacade
getTunnelInfo
in interface TunnelManagerFacade
id
- the tunnelId as seen at the gatewaypublic TunnelInfo selectInboundTunnel()
TunnelManagerFacade
selectInboundTunnel
in interface TunnelManagerFacade
public TunnelInfo selectInboundTunnel(Hash destination)
TunnelManagerFacade
selectInboundTunnel
in interface TunnelManagerFacade
public TunnelInfo selectOutboundTunnel()
TunnelManagerFacade
selectOutboundTunnel
in interface TunnelManagerFacade
public TunnelInfo selectOutboundTunnel(Hash destination)
TunnelManagerFacade
selectOutboundTunnel
in interface TunnelManagerFacade
public boolean isInUse(Hash peer)
TunnelManagerFacade
isInUse
in interface TunnelManagerFacade
public boolean isValidTunnel(Hash client, TunnelInfo tunnel)
TunnelManagerFacade
isValidTunnel
in interface TunnelManagerFacade
public int getParticipatingCount()
TunnelManagerFacade
getParticipatingCount
in interface TunnelManagerFacade
public int getFreeTunnelCount()
TunnelManagerFacade
getFreeTunnelCount
in interface TunnelManagerFacade
public int getOutboundTunnelCount()
TunnelManagerFacade
getOutboundTunnelCount
in interface TunnelManagerFacade
public int getInboundClientTunnelCount()
TunnelManagerFacade
getInboundClientTunnelCount
in interface TunnelManagerFacade
public int getOutboundClientTunnelCount()
TunnelManagerFacade
getOutboundClientTunnelCount
in interface TunnelManagerFacade
public long getLastParticipatingExpiration()
TunnelManagerFacade
getLastParticipatingExpiration
in interface TunnelManagerFacade
public void buildTunnels(Destination client, ClientTunnelSettings settings)
TunnelManagerFacade
buildTunnels
in interface TunnelManagerFacade
public TunnelPoolSettings getInboundSettings()
getInboundSettings
in interface TunnelManagerFacade
public TunnelPoolSettings getOutboundSettings()
getOutboundSettings
in interface TunnelManagerFacade
public TunnelPoolSettings getInboundSettings(Hash client)
getInboundSettings
in interface TunnelManagerFacade
public TunnelPoolSettings getOutboundSettings(Hash client)
getOutboundSettings
in interface TunnelManagerFacade
public void setInboundSettings(TunnelPoolSettings settings)
setInboundSettings
in interface TunnelManagerFacade
public void setOutboundSettings(TunnelPoolSettings settings)
setOutboundSettings
in interface TunnelManagerFacade
public void setInboundSettings(Hash client, TunnelPoolSettings settings)
setInboundSettings
in interface TunnelManagerFacade
public void setOutboundSettings(Hash client, TunnelPoolSettings settings)
setOutboundSettings
in interface TunnelManagerFacade
public int getInboundBuildQueueSize()
TunnelManagerFacade
getInboundBuildQueueSize
in interface TunnelManagerFacade
public void renderStatusHTML(java.io.Writer out) throws java.io.IOException
renderStatusHTML
in interface Service
java.io.IOException
public void restart()
Service
restart
in interface Service
public void shutdown()
Service
shutdown
in interface Service
public void startup()
Service
startup
in interface Service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |