public class FtpConstraintLimitHandler
extends org.waarp.common.cpu.WaarpConstraintLimitHandler
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() |
protected long |
getWriteLimit() |
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 org.waarp.common.cpu.WaarpConstraintLimitHandler
protected long getReadLimit()
getReadLimit
in class org.waarp.common.cpu.WaarpConstraintLimitHandler
protected long getWriteLimit()
getWriteLimit
in class org.waarp.common.cpu.WaarpConstraintLimitHandler
Copyright © 2009–2019 Waarp. All rights reserved.