RouterThrottleRouterDoSThrottlepublic class RouterThrottleImpl extends java.lang.Object implements RouterThrottle
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
protected RouterContext |
_context |
|
static int |
DEFAULT_MAX_TUNNELS |
|
static java.lang.String |
PROP_MAX_TUNNELS |
|
static int |
TUNNEL_ACCEPT |
tunnel acceptance
|
| コンストラクタ | 説明 |
|---|---|
RouterThrottleImpl(RouterContext context) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
boolean |
acceptNetDbLookupRequest(Hash key) |
推奨されていません。
unused, function moved to netdb
|
boolean |
acceptNetworkMessage() |
Should we accept any more data from the network for any sort of message,
taking into account our current load, or should we simply slow down?
FIXME only called by SSU Receiver, not NTCP!
FIXME should put warning on the console
FIXME or should we do this at all? We have Codel queues all over now...
|
int |
acceptTunnelRequest() |
If we should send a reject, return a nonzero reject code.
|
void |
cancelShutdownStatus() |
|
double |
getInboundRateDelta() |
How much faster (or if negative, slower) we are receiving data as
opposed to our longer term averages?
|
long |
getMessageDelay() |
How backed up we are at the moment processing messages (in milliseconds)
|
long |
getTunnelLag() |
How backed up our tunnels are at the moment (in milliseconds)
|
java.lang.String |
getTunnelStatus() |
Message on the state of participating tunnel acceptance
|
void |
setShutdownStatus() |
|
void |
setTunnelStatus(java.lang.String msg) |
protected final RouterContext _context
public static final java.lang.String PROP_MAX_TUNNELS
public static final int DEFAULT_MAX_TUNNELS
public static final int TUNNEL_ACCEPT
public RouterThrottleImpl(RouterContext context)
public boolean acceptNetworkMessage()
acceptNetworkMessage インタフェース内 RouterThrottle@Deprecated public boolean acceptNetDbLookupRequest(Hash key)
RouterThrottleacceptNetDbLookupRequest インタフェース内 RouterThrottlepublic int acceptTunnelRequest()
acceptTunnelRequest インタフェース内 RouterThrottlepublic long getMessageDelay()
RouterThrottlegetMessageDelay インタフェース内 RouterThrottlepublic long getTunnelLag()
RouterThrottlegetTunnelLag インタフェース内 RouterThrottlepublic double getInboundRateDelta()
RouterThrottlegetInboundRateDelta インタフェース内 RouterThrottlepublic java.lang.String getTunnelStatus()
RouterThrottlegetTunnelStatus インタフェース内 RouterThrottlepublic void setShutdownStatus()
setShutdownStatus インタフェース内 RouterThrottlepublic void cancelShutdownStatus()
cancelShutdownStatus インタフェース内 RouterThrottlepublic void setTunnelStatus(java.lang.String msg)
setTunnelStatus インタフェース内 RouterThrottle