public interface TunnelInfo| Modifier and Type | Method and Description |
|---|---|
int | getConsecutiveFailures()The number of consecutive test failures. |
Hash | getDestination()If this is a client tunnel, what destination is it for? |
Hash | getEndpoint()For convenience |
long | getExpiration()The tunnel's expiration time. |
Hash | getFarEnd()For convenience |
Hash | getGateway()For convenience |
int | getLastLatency()The latency of the last tunnel test. |
long | getLastRealTraffic()When the tunnel last carried real traffic. |
int | getLength()How many peers are there in the tunnel (including the creator)? |
Hash | getPeer(int hop)The peer at the given hop. |
int | getProcessedMessagesCount()The count of messages that have been processed through this tunnel. |
TunnelId | getReceiveTunnelId(int hop)The tunnelId that the given hop receives messages on. |
TunnelId | getSendTunnelId(int hop)The tunnelId that the given hop sends messages on. |
TunnelTestStatus | getTestStatus()The current test status of this tunnel for UI display. |
boolean | getTunnelFailed()Has the tunnel failed completely? |
long | getVerifiedBytesTransferred()Number of bytes known to have travelled through the tunnel in its lifetime. |
void | incrementVerifiedBytesTransferred(int numBytes)Increment the verified byte count for data successfully sent through the tunnel. |
boolean | isInbound()Is this an inbound tunnel? |
void | recordRealTraffic()Record that the tunnel carried real (non-test) traffic. |
void | setExpiration(long when)The tunnel's expiration time. |
void | setReused()Note that we reused this tunnel |
void | setTestFailed()The test status when a test fails. |
void | setTestStarted()The test status when a test is started. |
void | testSuccessful(int responseTime)Record that the tunnel successfully processed a test with the given response time. |
boolean | wasReused()Did we reuse this tunnel? |
int getConsecutiveFailures()
Hash getDestination()
Hash getEndpoint()
long getExpiration()
Hash getFarEnd()
Hash getGateway()
int getLastLatency()
long getLastRealTraffic()
int getLength()
Hash getPeer(int hop)
int getProcessedMessagesCount()
TunnelId getReceiveTunnelId(int hop)
TunnelId getSendTunnelId(int hop)
TunnelTestStatus getTestStatus()
boolean getTunnelFailed()
long getVerifiedBytesTransferred()
void incrementVerifiedBytesTransferred(int numBytes)
numBytes - the number of bytes to add to the verified totalboolean isInbound()
void recordRealTraffic()
void setExpiration(long when)
when - expiration time in milliseconds since epochvoid setReused()
void setTestFailed()
void setTestStarted()
void testSuccessful(int responseTime)
responseTime - the response time in millisecondsboolean wasReused()