@InterfaceAudience.LimitedPrivate(value="Configuration") public class PressureAwareCompactionThroughputController extends org.apache.hadoop.conf.Configured implements CompactionThroughputController, Stoppable
Store.getCompactionPressure()| Modifier and Type | Field and Description |
|---|---|
static String |
HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_HIGHER_BOUND |
static String |
HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_LOWER_BOUND |
static String |
HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_OFFPEAK |
static String |
HBASE_HSTORE_COMPACTION_THROUGHPUT_TUNE_PERIOD |
| Constructor and Description |
|---|
PressureAwareCompactionThroughputController() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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
public PressureAwareCompactionThroughputController()
public void setup(RegionServerServices server)
CompactionThroughputControllersetup in interface CompactionThroughputControllerpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class org.apache.hadoop.conf.Configuredpublic void start(String compactionName)
CompactionThroughputControllerstart in interface CompactionThroughputControllerpublic long control(String compactionName, long size) throws InterruptedException
CompactionThroughputControllercontrol in interface CompactionThroughputControllerInterruptedExceptionpublic void finish(String compactionName)
CompactionThroughputControllerfinish in interface CompactionThroughputControllerpublic boolean isStopped()
isStopped in interface StoppableStoppable.stop(String) has been closed.Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.