|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.TunnelCreatorConfig
Coordinate the info that the tunnel creator keeps track of, including what peers are in the tunnel and what their configuration is
Constructor Summary | |
TunnelCreatorConfig(int length,
boolean isInbound)
|
|
TunnelCreatorConfig(int length,
boolean isInbound,
Hash destination)
|
Method Summary | |
(package private) static java.lang.String |
format(long date)
|
HopConfig |
getConfig(int hop)
retrieve the config for the given hop. |
Hash |
getDestination()
if this is a client tunnel, what destination is it for? |
long |
getExpiration()
|
int |
getLength()
how many hops are there in the tunnel? |
Hash |
getPeer(int hop)
retrieve the peer at the given hop. |
long |
getProcessedMessagesCount()
|
TunnelId |
getReceiveTunnelId(int hop)
retrieve the tunnelId that the given hop receives messages on. |
TunnelId |
getSendTunnelId(int hop)
retrieve the tunnelId that the given hop sends messages on. |
void |
incrementProcessedMessages()
take note of a message being pumped through this tunnel |
boolean |
isInbound()
is this an inbound tunnel? |
void |
setExpiration(long when)
|
void |
setPeer(int hop,
Hash peer)
|
void |
testSuccessful(int ms)
take note that the tunnel was able to measurably Do Good in the given time |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TunnelCreatorConfig(int length, boolean isInbound)
public TunnelCreatorConfig(int length, boolean isInbound, Hash destination)
Method Detail |
public int getLength()
getLength
in interface TunnelInfo
public HopConfig getConfig(int hop)
public TunnelId getReceiveTunnelId(int hop)
getReceiveTunnelId
in interface TunnelInfo
public TunnelId getSendTunnelId(int hop)
getSendTunnelId
in interface TunnelInfo
public Hash getPeer(int hop)
getPeer
in interface TunnelInfo
public void setPeer(int hop, Hash peer)
public boolean isInbound()
isInbound
in interface TunnelInfo
public Hash getDestination()
getDestination
in interface TunnelInfo
public long getExpiration()
getExpiration
in interface TunnelInfo
public void setExpiration(long when)
public void testSuccessful(int ms)
TunnelInfo
testSuccessful
in interface TunnelInfo
public void incrementProcessedMessages()
public long getProcessedMessagesCount()
getProcessedMessagesCount
in interface TunnelInfo
public java.lang.String toString()
static java.lang.String format(long date)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |