public interface TunnelInfo
| Modifier and Type | Method and Description |
|---|---|
int |
getConsecutiveFailures()
Get 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()
Get the tunnel's expiration time.
|
Hash |
getFarEnd()
For convenience
|
Hash |
getGateway()
For convenience
|
int |
getLastLatency()
Get the last recorded round-trip latency for this tunnel from the most recent test.
|
int |
getLength()
how many peers are there in the tunnel (including the creator)?
|
Hash |
getPeer(int hop)
retrieve the peer at the given hop.
|
int |
getProcessedMessagesCount()
Get the count of messages that have been processed through this tunnel.
|
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.
|
TunnelTestStatus |
getTestStatus()
Get the current test status of this tunnel for UI display.
|
boolean |
getTunnelFailed()
Has the tunnel failed completely?
|
long |
getVerifiedBytesTransferred()
we know for sure that this many bytes 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 |
setReused()
Note that we reused this tunnel
|
void |
setTestFailed()
Set the test status when a test fails.
|
void |
setTestStarted()
Set 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()
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 setReused()
void setTestFailed()
void setTestStarted()
void testSuccessful(int responseTime)
responseTime - the response time in millisecondsboolean wasReused()