public class FtpConstraintLimitHandler extends WaarpConstraintLimitHandler
lastAlert, LOWBANDWIDTH_DEFAULT
Constructor and Description |
---|
FtpConstraintLimitHandler(long timeoutcon,
boolean useCpuLimit,
boolean useJdKCpuLimit,
double cpulimit,
int channellimit) |
FtpConstraintLimitHandler(long timeoutcon,
boolean useCpuLimit,
boolean useJdKCpuLimit,
double cpulimit,
int channellimit,
double lowcpuLimit,
double highcpuLimit,
double percentageDecrease,
io.netty.handler.traffic.GlobalTrafficShapingHandler handler,
long delay,
long limitLowBandwidth) |
FtpConstraintLimitHandler(long timeoutcon,
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, setServer
public FtpConstraintLimitHandler(long timeoutcon, 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 FtpConstraintLimitHandler(long timeoutcon, 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 FtpConstraintLimitHandler(long timeoutcon, 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 WaarpConstraintLimitHandler
protected long getReadLimit()
WaarpConstraintLimitHandler
getReadLimit
in class WaarpConstraintLimitHandler
protected long getWriteLimit()
WaarpConstraintLimitHandler
getWriteLimit
in class WaarpConstraintLimitHandler
Copyright © 2009–2020 Waarp. All rights reserved.