org.apache.hadoop.hbase.regionserver
Class CompactSplitThread
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.regionserver.CompactSplitThread
- All Implemented Interfaces:
- Runnable, CompactionRequestor
public class CompactSplitThread
- extends Thread
- implements CompactionRequestor
Compact region on request and then run split if appropriate
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
PRIORITY_USER
public static final int PRIORITY_USER
- See Also:
- Constant Field Values
CompactSplitThread
public CompactSplitThread(HRegionServer server)
- Parameters:
server
-
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
requestCompaction
public void requestCompaction(HRegion r,
String why)
- Specified by:
requestCompaction
in interface CompactionRequestor
- Parameters:
r
- Region to compactwhy
- Why compaction was requested -- used in debug messages
requestCompaction
public void requestCompaction(HRegion r,
String why,
int p)
- Specified by:
requestCompaction
in interface CompactionRequestor
- Parameters:
r
- Region to compactwhy
- Why compaction was requested -- used in debug messagesp
- Priority of this compaction. minHeap. <=0 is critical
requestCompaction
public void requestCompaction(HRegion r,
boolean force,
String why,
int priority)
- Parameters:
r
- HRegion store belongs toforce
- Whether next compaction should be majorwhy
- Why compaction requested -- used in debug messages
getCompactionQueueSize
public int getCompactionQueueSize()
- Returns the current size of the queue containing regions that are
processed.
- Returns:
- The current size of the regions queue.
getRegionSplitLimit
public int getRegionSplitLimit()
- Returns:
- the regionSplitLimit
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.