private class HeapMemoryManager.HeapMemoryTunerChore extends ScheduledChore implements FlushRequestListener
Modifier and Type | Field and Description |
---|---|
private boolean |
alarming |
private AtomicLong |
blockedFlushCount |
private long |
cacheMissCount |
private long |
evictCount |
private HeapMemoryTuner |
heapMemTuner |
private HeapMemoryManager.TunerContext |
tunerContext |
private AtomicLong |
unblockedFlushCount |
Constructor and Description |
---|
HeapMemoryManager.HeapMemoryTunerChore() |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
void |
flushRequested(FlushType type,
Region region)
Callback which will get called when a flush request is made for a region.
|
private void |
tune() |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, toString, triggerNow
private HeapMemoryTuner heapMemTuner
private AtomicLong blockedFlushCount
private AtomicLong unblockedFlushCount
private long evictCount
private long cacheMissCount
private HeapMemoryManager.TunerContext tunerContext
private boolean alarming
public HeapMemoryManager.HeapMemoryTunerChore()
protected void chore()
ScheduledChore
chore
in class ScheduledChore
private void tune()
public void flushRequested(FlushType type, Region region)
FlushRequestListener
flushRequested
in interface FlushRequestListener
type
- The type of flush. (ie. Whether a normal flush or flush because of global heap preassure)region
- The region for which flush is requestedCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.