
public class R66ConstraintLimitHandler extends WaarpConstraintLimitHandler
Constraint Limit (CPU and connection - network and local -) handler, only for server side (requested or requester).
lastAlert, LOWBANDWIDTH_DEFAULT| Constructor and Description |
|---|
R66ConstraintLimitHandler() |
R66ConstraintLimitHandler(boolean useCpuLimit,
boolean useJdKCpuLimit,
double cpulimit,
int channellimit) |
R66ConstraintLimitHandler(boolean useCpuLimit,
boolean useJdKCpuLimit,
double cpulimit,
int channellimit,
double lowcpuLimit,
double highcpuLimit,
double percentageDecrease,
io.netty.handler.traffic.GlobalTrafficShapingHandler handler,
long delay,
long limitLowBandwidth) |
R66ConstraintLimitHandler(boolean useJdKCpuLimit,
double lowcpuLimit,
double highcpuLimit,
double percentageDecrease,
io.netty.handler.traffic.GlobalTrafficShapingHandler handler,
long delay,
long limitLowBandwidth) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getNumberLocalChannel() |
protected long |
getReadLimit()
Get the current setting on Read Limit (supposed to be not the value in
the
handler but in the
configuration)
|
protected long |
getWriteLimit()
Get the current setting on Write Limit (supposed to be not the value in
the
handler but in the
configuration)
|
checkConstraints, checkConstraintsSleep, getChannelLimit, getCpuLimit, getSleepTime, release, run, setChannelLimit, setCpuLimit, setHandler, setServerpublic R66ConstraintLimitHandler()
public R66ConstraintLimitHandler(boolean useJdKCpuLimit,
double lowcpuLimit,
double highcpuLimit,
double percentageDecrease,
io.netty.handler.traffic.GlobalTrafficShapingHandler handler,
long delay,
long limitLowBandwidth)
useJdKCpuLimit - True to use JDK Cpu native or False for
JavaSysMonlowcpuLimit - for proactive cpu limitation (throttling
bandwidth)
(0<= x < 1 & highcpulimit)highcpuLimit - for proactive cpu limitation (throttling
bandwidth)
(0<= x <= 1) 0 meaning no
throttle activatedpercentageDecrease - for proactive cpu limitation,
throttling
bandwidth reduction (0 < x < 1) as 0.25
for 25% of reductionhandler - the GlobalTrafficShapingHandler associated (null
to have
no proactive cpu
limitation)delay - the delay between 2 tests for proactive cpu
limitationlimitLowBandwidth - the minimal bandwidth (read or write) to
apply
when decreasing bandwidth (low
limit = 4096)public R66ConstraintLimitHandler(boolean useCpuLimit,
boolean useJdKCpuLimit,
double cpulimit,
int channellimit)
useCpuLimit - True to enable cpuLimit on connection checkuseJdKCpuLimit - True to use JDK Cpu native or False for
JavaSysMoncpulimit - high cpu limit (0<= x < 1) to refuse new
connectionschannellimit - number of connection limit (0<= x)public R66ConstraintLimitHandler(boolean useCpuLimit,
boolean useJdKCpuLimit,
double cpulimit,
int channellimit,
double lowcpuLimit,
double highcpuLimit,
double percentageDecrease,
io.netty.handler.traffic.GlobalTrafficShapingHandler handler,
long delay,
long limitLowBandwidth)
useCpuLimit - True to enable cpuLimit on connection checkuseJdKCpuLimit - True to use JDK Cpu native or False for
JavaSysMoncpulimit - high cpu limit (0<= x < 1) to refuse new
connectionschannellimit - number of connection limit (0<= x)lowcpuLimit - for proactive cpu limitation (throttling
bandwidth)
(0<= x < 1 & highcpulimit)highcpuLimit - for proactive cpu limitation (throttling
bandwidth)
(0<= x <= 1) 0 meaning no
throttle activatedpercentageDecrease - for proactive cpu limitation,
throttling
bandwidth reduction (0 < x < 1) as 0.25
for 25% of reductionhandler - the GlobalTrafficShapingHandler associated (null
to have
no proactive cpu
limitation)delay - the delay between 2 tests for proactive cpu
limitationlimitLowBandwidth - the minimal bandwidth (read or write) to
apply
when decreasing bandwidth (low
limit = 4096)protected int getNumberLocalChannel()
getNumberLocalChannel in class WaarpConstraintLimitHandlerprotected long getReadLimit()
WaarpConstraintLimitHandlergetReadLimit in class WaarpConstraintLimitHandlerprotected long getWriteLimit()
WaarpConstraintLimitHandlergetWriteLimit in class WaarpConstraintLimitHandlerCopyright © 2009–2020 Waarp. All rights reserved.