@InterfaceAudience.LimitedPrivate(value="Configuration") public abstract class PressureAwareThroughputController extends org.apache.hadoop.conf.Configured implements ThroughputController, Stoppable
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConcurrentMap<String,org.apache.hadoop.hbase.regionserver.throttle.PressureAwareThroughputController.ActiveOperation> |
activeOperations |
protected long |
controlPerSize |
protected long |
maxThroughputLowerBound |
protected long |
maxThroughputUpperBound |
protected OffPeakHours |
offPeakHours |
protected int |
tuningPeriod |
| 构造器和说明 |
|---|
PressureAwareThroughputController() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
control(String opName,
long size)
Control the throughput.
|
void |
finish(String opName)
Finish the controller.
|
double |
getMaxThroughput() |
boolean |
isStopped() |
void |
setMaxThroughput(double maxThroughput) |
abstract void |
setup(RegionServerServices server)
Setup controller for the given region server.
|
protected abstract boolean |
skipControl(long deltaSize,
long controlSize)
Check whether to skip control given delta size and control size
|
void |
start(String opName)
Start the throughput controller.
|
void |
stop(String why) |
protected String |
throughputDesc(double speed) |
protected String |
throughputDesc(long deltaSize,
long elapsedTime) |
protected long maxThroughputUpperBound
protected long maxThroughputLowerBound
protected OffPeakHours offPeakHours
protected long controlPerSize
protected int tuningPeriod
protected final ConcurrentMap<String,org.apache.hadoop.hbase.regionserver.throttle.PressureAwareThroughputController.ActiveOperation> activeOperations
public abstract void setup(RegionServerServices server)
ThroughputControllersetup 在接口中 ThroughputControllerprotected String throughputDesc(long deltaSize, long elapsedTime)
protected String throughputDesc(double speed)
public void start(String opName)
ThroughputControllerstart 在接口中 ThroughputControllerpublic long control(String opName, long size) throws InterruptedException
ThroughputControllercontrol 在接口中 ThroughputControllerInterruptedExceptionprotected abstract boolean skipControl(long deltaSize,
long controlSize)
deltaSize - Delta size since last controlcontrolSize - Size limit to perform controlpublic void finish(String opName)
ThroughputControllerfinish 在接口中 ThroughputControllerpublic double getMaxThroughput()
public void setMaxThroughput(double maxThroughput)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.