TunnelInfo
PooledTunnelCreatorConfig
public class TunnelCreatorConfig extends java.lang.Object implements TunnelInfo
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected RouterContext |
_context |
コンストラクタ | 説明 |
---|---|
TunnelCreatorConfig(RouterContext ctx,
int length,
boolean isInbound) |
For exploratory only (null destination)
|
TunnelCreatorConfig(RouterContext ctx,
int length,
boolean isInbound,
Hash destination) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
(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?
|
Hash |
getEndpoint() |
For convenience
|
long |
getExpiration() |
|
Hash |
getFarEnd() |
For convenience
|
Hash |
getGateway() |
For convenience
|
int |
getLength() |
How many hops are there in the tunnel?
INCLUDING US.
|
java.util.Properties |
getOptions() |
|
Hash |
getPeer(int hop) |
retrieve the peer at the given hop.
|
int |
getPriority() |
Outbound message priority - for outbound tunnels only
|
int |
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<java.lang.Integer> |
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) |
This calls profile manager tunnelDataPushed1m() for each peer
|
boolean |
isInbound() |
is this an inbound tunnel?
|
void |
setExpiration(long when) |
|
void |
setPeer(int hop,
Hash peer) |
|
void |
setPriority(int priority) |
Outbound message priority - for outbound tunnels only
|
void |
setReplyMessageId(long id) |
|
void |
setReplyOrder(java.util.List<java.lang.Integer> order) |
|
void |
setReused() |
Note that we reused this tunnel
|
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 a test, so (maybe) stop using it
|
boolean |
wasReused() |
Did we reuse this tunnel?
|
protected final RouterContext _context
public TunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound)
length
- 1 minimum (0 hop is length 1)public TunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination)
length
- 1 minimum (0 hop is length 1)destination
- null for exploratorypublic int getLength()
getLength
インタフェース内 TunnelInfo
public java.util.Properties getOptions()
public HopConfig getConfig(int hop)
public TunnelId getReceiveTunnelId(int hop)
getReceiveTunnelId
インタフェース内 TunnelInfo
public TunnelId getSendTunnelId(int hop)
getSendTunnelId
インタフェース内 TunnelInfo
public Hash getPeer(int hop)
getPeer
インタフェース内 TunnelInfo
public void setPeer(int hop, Hash peer)
public Hash getGateway()
getGateway
インタフェース内 TunnelInfo
public Hash getEndpoint()
getEndpoint
インタフェース内 TunnelInfo
public Hash getFarEnd()
getFarEnd
インタフェース内 TunnelInfo
public boolean isInbound()
isInbound
インタフェース内 TunnelInfo
public Hash getDestination()
getDestination
インタフェース内 TunnelInfo
public long getExpiration()
getExpiration
インタフェース内 TunnelInfo
public void setExpiration(long when)
public java.util.List<java.lang.Integer> getReplyOrder()
public void setReplyOrder(java.util.List<java.lang.Integer> order)
public long getReplyMessageId()
public void setReplyMessageId(long id)
public void incrementProcessedMessages()
public int getProcessedMessagesCount()
getProcessedMessagesCount
インタフェース内 TunnelInfo
public void incrementVerifiedBytesTransferred(int bytes)
incrementVerifiedBytesTransferred
インタフェース内 TunnelInfo
public long getVerifiedBytesTransferred()
TunnelInfo
getVerifiedBytesTransferred
インタフェース内 TunnelInfo
public boolean tunnelFailed()
public boolean getTunnelFailed()
public int getTunnelFailures()
public void testSuccessful(int ms)
TunnelInfo
testSuccessful
インタフェース内 TunnelInfo
public boolean wasReused()
wasReused
インタフェース内 TunnelInfo
public void setReused()
setReused
インタフェース内 TunnelInfo
public int getPriority()
public void setPriority(int priority)
priority
- -25 to +25, default 0public java.lang.String toString()
toString
クラス内 java.lang.Object
static java.lang.String format(long date)