public interface TunnelInfo
Modifier and Type | Method and Description |
---|---|
Hash |
getDestination()
if this is a client tunnel, what destination is it for?
|
Hash |
getEndpoint()
For convenience
|
long |
getExpiration() |
Hash |
getFarEnd()
For convenience
|
Hash |
getGateway()
For convenience
|
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() |
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.
|
long |
getVerifiedBytesTransferred()
we know for sure that this many bytes travelled through the tunnel in its lifetime
|
void |
incrementVerifiedBytesTransferred(int numBytes)
we know for sure that the given number of bytes were sent down the tunnel fully
|
boolean |
isInbound()
is this an inbound tunnel?
|
void |
setReused()
Note that we reused this tunnel
|
void |
testSuccessful(int responseTime)
take note that the tunnel was able to measurably Do Good
in the given time
|
boolean |
wasReused()
Did we reuse this tunnel?
|
int getLength()
TunnelId getReceiveTunnelId(int hop)
TunnelId getSendTunnelId(int hop)
Hash getPeer(int hop)
Hash getGateway()
Hash getEndpoint()
Hash getFarEnd()
boolean isInbound()
Hash getDestination()
long getExpiration()
void testSuccessful(int responseTime)
int getProcessedMessagesCount()
long getVerifiedBytesTransferred()
void incrementVerifiedBytesTransferred(int numBytes)
boolean wasReused()
void setReused()