|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.compactions.PressureAwareCompactionThroughputController
@InterfaceAudience.LimitedPrivate(value="Configuration") public class PressureAwareCompactionThroughputController
A throughput controller which uses the follow schema to limit throughput
Store.getCompactionPressure()
Constructor Summary | |
---|---|
PressureAwareCompactionThroughputController()
|
Method Summary | |
---|---|
long |
control(String compactionName,
long size)
Control the compaction throughput. |
void |
finish(String compactionName)
Finish a compaction. |
boolean |
isStopped()
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
void |
setup(RegionServerServices server)
Setup controller for the given region server. |
void |
start(String compactionName)
Start a compaction. |
void |
stop(String why)
Stop this service. |
String |
toString()
|
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_HIGHER_BOUND
public static final String HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_LOWER_BOUND
public static final String HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_OFFPEAK
public static final String HBASE_HSTORE_COMPACTION_THROUGHPUT_TUNE_PERIOD
Constructor Detail |
---|
public PressureAwareCompactionThroughputController()
Method Detail |
---|
public void setup(RegionServerServices server)
CompactionThroughputController
setup
in interface CompactionThroughputController
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.conf.Configured
public void start(String compactionName)
CompactionThroughputController
start
in interface CompactionThroughputController
public long control(String compactionName, long size) throws InterruptedException
CompactionThroughputController
control
in interface CompactionThroughputController
InterruptedException
public void finish(String compactionName)
CompactionThroughputController
finish
in interface CompactionThroughputController
public void stop(String why)
Stoppable
stop
in interface Stoppable
why
- Why we're stopping.public boolean isStopped()
isStopped
in interface Stoppable
Stoppable.stop(String)
has been closed.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |