@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.
|
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)
ThroughputController
setup
在接口中 ThroughputController
protected String throughputDesc(long deltaSize, long elapsedTime)
protected String throughputDesc(double speed)
public void start(String opName)
ThroughputController
start
在接口中 ThroughputController
public long control(String opName, long size) throws InterruptedException
ThroughputController
control
在接口中 ThroughputController
InterruptedException
public void finish(String opName)
ThroughputController
finish
在接口中 ThroughputController
public double getMaxThroughput()
public void setMaxThroughput(double maxThroughput)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.