@InterfaceAudience.Private public class MemStoreFlusher extends Object implements FlushRequester
FlushRequester| Modifier and Type | Field and Description |
|---|---|
protected Map<Region,org.apache.hadoop.hbase.regionserver.MemStoreFlusher.FlushRegionEntry> |
regionsInQueue |
| Constructor and Description |
|---|
MemStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HRegionServer server) |
| Modifier and Type | Method and Description |
|---|---|
String |
dumpQueue() |
int |
getFlushQueueSize() |
LongAdder |
getUpdatesBlockedMsHighWater() |
void |
reclaimMemStoreMemory()
Check if the regionserver's memstore memory usage is greater than the limit.
|
void |
registerFlushRequestListener(FlushRequestListener listener)
Register a MemstoreFlushListener
|
boolean |
requestDelayedFlush(HRegion r,
long delay)
Tell the listener the cache needs to be flushed after a delay
|
boolean |
requestFlush(HRegion r,
FlushLifeCycleTracker tracker)
Tell the listener the cache needs to be flushed.
|
boolean |
requestFlush(HRegion r,
List<byte[]> families,
FlushLifeCycleTracker tracker)
Tell the listener the cache needs to be flushed.
|
void |
setGlobalMemStoreLimit(long globalMemStoreSize)
Sets the global memstore limit to a new size.
|
String |
toString() |
boolean |
unregisterFlushRequestListener(FlushRequestListener listener)
Unregister the listener from MemstoreFlushListeners
|
protected final Map<Region,org.apache.hadoop.hbase.regionserver.MemStoreFlusher.FlushRegionEntry> regionsInQueue
public MemStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
public LongAdder getUpdatesBlockedMsHighWater()
public boolean requestFlush(HRegion r, FlushLifeCycleTracker tracker)
FlushRequesterrequestFlush in interface FlushRequesterr - the Region requesting the cache flushpublic boolean requestFlush(HRegion r, List<byte[]> families, FlushLifeCycleTracker tracker)
FlushRequesterrequestFlush in interface FlushRequesterr - the Region requesting the cache flushfamilies - stores of region to flush, if null then use flush policypublic boolean requestDelayedFlush(HRegion r, long delay)
FlushRequesterrequestDelayedFlush in interface FlushRequesterr - the Region requesting the cache flushdelay - after how much time should the flush happenpublic int getFlushQueueSize()
public void reclaimMemStoreMemory()
public String dumpQueue()
public void registerFlushRequestListener(FlushRequestListener listener)
registerFlushRequestListener in interface FlushRequesterpublic boolean unregisterFlushRequestListener(FlushRequestListener listener)
unregisterFlushRequestListener in interface FlushRequesterpublic void setGlobalMemStoreLimit(long globalMemStoreSize)
setGlobalMemStoreLimit in interface FlushRequesterCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.