Class HeapMemoryManager.HeapMemoryTunerChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.regionserver.HeapMemoryManager.HeapMemoryTunerChore
- All Implemented Interfaces:
Runnable
,FlushRequestListener
- Enclosing class:
- HeapMemoryManager
private class HeapMemoryManager.HeapMemoryTunerChore
extends ScheduledChore
implements FlushRequestListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private AtomicLong
private long
private long
private HeapMemoryTuner
private HeapMemoryManager.TunerContext
private AtomicLong
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the Chorevoid
flushRequested
(FlushType type, Region region) Callback which will get called when a flush request is made for a region.private void
tune()
Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
heapMemTuner
-
blockedFlushCount
-
unblockedFlushCount
-
evictCount
-
cacheMissCount
-
tunerContext
-
alarming
-
-
Constructor Details
-
HeapMemoryTunerChore
public HeapMemoryTunerChore()
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
tune
-
flushRequested
Description copied from interface:FlushRequestListener
Callback which will get called when a flush request is made for a region.- Specified by:
flushRequested
in interfaceFlushRequestListener
- Parameters:
type
- The type of flush. (ie. Whether a normal flush or flush because of global heap preassure)region
- The region for which flush is requested
-