@InterfaceAudience.Private public class CompactSplit extends Object implements CompactionRequester, PropagatingConfigurationObserver
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
CompactSplit.CompactionCompleteTracker |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_REGION_SERVER_REGION_SPLIT_LIMIT |
static String |
HBASE_REGION_SERVER_ENABLE_COMPACTION |
static String |
LARGE_COMPACTION_THREADS |
static int |
LARGE_COMPACTION_THREADS_DEFAULT |
static String |
REGION_SERVER_REGION_SPLIT_LIMIT |
static String |
SMALL_COMPACTION_THREADS |
static int |
SMALL_COMPACTION_THREADS_DEFAULT |
static String |
SPLIT_THREADS |
static int |
SPLIT_THREADS_DEFAULT |
| Constructor and Description |
|---|
CompactSplit(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearLongCompactionsQueue() |
void |
clearShortCompactionsQueue() |
void |
deregisterChildren(ConfigurationManager manager) |
String |
dumpQueue() |
int |
getCompactionQueueSize()
Returns the current size of the queue containing regions that are processed.
|
ThroughputController |
getCompactionThroughputController() |
int |
getLargeCompactionQueueSize() |
protected int |
getLargeCompactionThreadNum() |
int |
getRegionSplitLimit()
Returns the regionSplitLimit
|
int |
getSmallCompactionQueueSize() |
protected int |
getSmallCompactionThreadNum() |
int |
getSplitQueueSize() |
protected int |
getSplitThreadNum() |
boolean |
isCompactionsEnabled() |
boolean |
isUnderCompaction(HStore s)
Check if this store is under compaction
|
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration newConf) |
void |
registerChildren(ConfigurationManager manager) |
void |
requestCompaction(HRegion region,
HStore store,
String why,
int priority,
CompactionLifeCycleTracker tracker,
User user)
Request compaction on the given store.
|
void |
requestCompaction(HRegion region,
String why,
int priority,
CompactionLifeCycleTracker tracker,
User user)
Request compaction on all the stores of the given region.
|
protected void |
requestCompactionInternal(HRegion region,
HStore store,
String why,
int priority,
boolean selectNow,
CompactionLifeCycleTracker tracker,
CompactSplit.CompactionCompleteTracker completeTracker,
User user) |
boolean |
requestSplit(Region r) |
void |
requestSystemCompaction(HRegion region,
HStore store,
String why) |
void |
requestSystemCompaction(HRegion region,
HStore store,
String why,
boolean giveUpIfRequestedOrCompacting)
Request system compaction on the given store.
|
void |
requestSystemCompaction(HRegion region,
String why) |
void |
setCompactionsEnabled(boolean compactionsEnabled) |
void |
switchCompaction(boolean onOrOff)
on/off compaction
|
String |
toString() |
public static final String LARGE_COMPACTION_THREADS
public static final int LARGE_COMPACTION_THREADS_DEFAULT
public static final String SMALL_COMPACTION_THREADS
public static final int SMALL_COMPACTION_THREADS_DEFAULT
public static final String SPLIT_THREADS
public static final int SPLIT_THREADS_DEFAULT
public static final String REGION_SERVER_REGION_SPLIT_LIMIT
public static final int DEFAULT_REGION_SERVER_REGION_SPLIT_LIMIT
public static final String HBASE_REGION_SERVER_ENABLE_COMPACTION
public String dumpQueue()
public boolean requestSplit(Region r)
public void requestCompaction(HRegion region, String why, int priority, CompactionLifeCycleTracker tracker, User user) throws IOException
CompactionRequesterrequestCompaction in interface CompactionRequesterIOExceptionpublic void requestCompaction(HRegion region, HStore store, String why, int priority, CompactionLifeCycleTracker tracker, User user) throws IOException
CompactionRequesterrequestCompaction in interface CompactionRequesterIOExceptionpublic void switchCompaction(boolean onOrOff)
CompactionRequesterswitchCompaction in interface CompactionRequesterprotected void requestCompactionInternal(HRegion region, HStore store, String why, int priority, boolean selectNow, CompactionLifeCycleTracker tracker, CompactSplit.CompactionCompleteTracker completeTracker, User user) throws IOException
IOExceptionpublic void requestSystemCompaction(HRegion region, String why) throws IOException
IOExceptionpublic void requestSystemCompaction(HRegion region, HStore store, String why) throws IOException
IOExceptionpublic void requestSystemCompaction(HRegion region, HStore store, String why, boolean giveUpIfRequestedOrCompacting) throws IOException
CompactionRequesterrequestSystemCompaction in interface CompactionRequesterIOExceptionpublic int getCompactionQueueSize()
public int getLargeCompactionQueueSize()
public int getSmallCompactionQueueSize()
public int getSplitQueueSize()
public int getRegionSplitLimit()
public boolean isUnderCompaction(HStore s)
public void onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
onConfigurationChange in interface ConfigurationObserverprotected int getSmallCompactionThreadNum()
protected int getLargeCompactionThreadNum()
protected int getSplitThreadNum()
public void registerChildren(ConfigurationManager manager)
registerChildren in interface PropagatingConfigurationObserverpublic void deregisterChildren(ConfigurationManager manager)
deregisterChildren in interface PropagatingConfigurationObserverpublic ThroughputController getCompactionThroughputController()
public void clearLongCompactionsQueue()
public void clearShortCompactionsQueue()
public boolean isCompactionsEnabled()
public void setCompactionsEnabled(boolean compactionsEnabled)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.