|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.TunnelCreatorConfig
public class TunnelCreatorConfig
Coordinate the info that the tunnel creator keeps track of, including what peers are in the tunnel and what their configuration is
Field Summary | |
---|---|
protected RouterContext |
_context
|
Constructor Summary | |
---|---|
TunnelCreatorConfig(RouterContext ctx,
int length,
boolean isInbound)
|
|
TunnelCreatorConfig(RouterContext ctx,
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? |
java.util.Properties |
getOptions()
|
double |
getPeakThroughputKBps()
|
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. |
long |
getReplyMessageId()
new style reply message id |
java.util.List |
getReplyOrder()
component ordering in the new style request |
TunnelId |
getSendTunnelId(int hop)
retrieve the tunnelId that the given hop sends messages on. |
boolean |
getTunnelFailed()
|
int |
getTunnelFailures()
|
long |
getVerifiedBytesTransferred()
we know for sure that this many bytes travelled through the tunnel in its lifetime |
void |
incrementProcessedMessages()
take note of a message being pumped through this tunnel |
void |
incrementVerifiedBytesTransferred(int bytes)
we know for sure that the given number of bytes were sent down the tunnel fully |
boolean |
isInbound()
is this an inbound tunnel? |
void |
setExpiration(long when)
|
void |
setPeakThroughputKBps(double kBps)
|
void |
setPeer(int hop,
Hash peer)
|
void |
setReplyMessageId(long id)
|
void |
setReplyOrder(java.util.List order)
|
void |
testSuccessful(int ms)
take note that the tunnel was able to measurably Do Good in the given time |
java.lang.String |
toString()
|
boolean |
tunnelFailed()
The tunnel failed, so stop using it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected RouterContext _context
Constructor Detail |
---|
public TunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound)
public TunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination)
Method Detail |
---|
public int getLength()
getLength
in interface TunnelInfo
public java.util.Properties getOptions()
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 java.util.List getReplyOrder()
public void setReplyOrder(java.util.List order)
public long getReplyMessageId()
public void setReplyMessageId(long id)
public void incrementProcessedMessages()
public long getProcessedMessagesCount()
getProcessedMessagesCount
in interface TunnelInfo
public void incrementVerifiedBytesTransferred(int bytes)
TunnelInfo
incrementVerifiedBytesTransferred
in interface TunnelInfo
public long getVerifiedBytesTransferred()
TunnelInfo
getVerifiedBytesTransferred
in interface TunnelInfo
public double getPeakThroughputKBps()
public void setPeakThroughputKBps(double kBps)
public boolean tunnelFailed()
public boolean getTunnelFailed()
public int getTunnelFailures()
public void testSuccessful(int ms)
TunnelInfo
testSuccessful
in interface TunnelInfo
public java.lang.String toString()
toString
in class java.lang.Object
static java.lang.String format(long date)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |