RouterThrottle
RouterDoSThrottle
public 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)
RouterThrottle
acceptNetDbLookupRequest
インタフェース内 RouterThrottle
public int acceptTunnelRequest()
acceptTunnelRequest
インタフェース内 RouterThrottle
public long getMessageDelay()
RouterThrottle
getMessageDelay
インタフェース内 RouterThrottle
public long getTunnelLag()
RouterThrottle
getTunnelLag
インタフェース内 RouterThrottle
public double getInboundRateDelta()
RouterThrottle
getInboundRateDelta
インタフェース内 RouterThrottle
public java.lang.String getTunnelStatus()
RouterThrottle
getTunnelStatus
インタフェース内 RouterThrottle
public void setShutdownStatus()
setShutdownStatus
インタフェース内 RouterThrottle
public void cancelShutdownStatus()
cancelShutdownStatus
インタフェース内 RouterThrottle
public void setTunnelStatus(java.lang.String msg)
setTunnelStatus
インタフェース内 RouterThrottle