@InterfaceAudience.Private public class RegionServerAccounting extends Object
Modifier and Type | Field and Description |
---|---|
private LongAdder |
globalMemStoreDataSize |
private LongAdder |
globalMemStoreHeapSize |
private long |
globalMemStoreLimit |
private long |
globalMemStoreLimitLowMark |
private float |
globalMemStoreLimitLowMarkPercent |
private LongAdder |
globalMemStoreOffHeapSize |
private long |
globalOnHeapMemstoreLimit |
private long |
globalOnHeapMemstoreLimitLowMark |
private MemoryType |
memType |
Constructor and Description |
---|
RegionServerAccounting(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
decGlobalMemStoreSize(long dataSizeDelta,
long heapSizeDelta,
long offHeapSizeDelta) |
double |
getFlushPressure() |
long |
getGlobalMemStoreDataSize() |
long |
getGlobalMemStoreHeapSize() |
(package private) long |
getGlobalMemStoreLimit() |
(package private) long |
getGlobalMemStoreLimitLowMark() |
(package private) float |
getGlobalMemStoreLimitLowMarkPercent() |
long |
getGlobalMemStoreOffHeapSize() |
(package private) long |
getGlobalOnHeapMemStoreLimit() |
void |
incGlobalMemStoreSize(long dataSizeDelta,
long heapSizeDelta,
long offHeapSizeDelta) |
(package private) void |
incGlobalMemStoreSize(MemStoreSize mss) |
FlushType |
isAboveHighWaterMark()
Return true if we are above the memstore high water mark
|
FlushType |
isAboveLowWaterMark()
Return true if we're above the low watermark
|
(package private) boolean |
isOffheap() |
(package private) void |
setGlobalMemStoreLimits(long newGlobalMemstoreLimit) |
private final LongAdder globalMemStoreDataSize
private final LongAdder globalMemStoreHeapSize
private final LongAdder globalMemStoreOffHeapSize
private long globalMemStoreLimit
private final float globalMemStoreLimitLowMarkPercent
private long globalMemStoreLimitLowMark
private final MemoryType memType
private long globalOnHeapMemstoreLimit
private long globalOnHeapMemstoreLimitLowMark
public RegionServerAccounting(org.apache.hadoop.conf.Configuration conf)
long getGlobalMemStoreLimit()
long getGlobalOnHeapMemStoreLimit()
void setGlobalMemStoreLimits(long newGlobalMemstoreLimit)
boolean isOffheap()
long getGlobalMemStoreLimitLowMark()
float getGlobalMemStoreLimitLowMarkPercent()
public long getGlobalMemStoreDataSize()
public long getGlobalMemStoreHeapSize()
public long getGlobalMemStoreOffHeapSize()
void incGlobalMemStoreSize(MemStoreSize mss)
public void incGlobalMemStoreSize(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta)
public void decGlobalMemStoreSize(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta)
public FlushType isAboveHighWaterMark()
public FlushType isAboveLowWaterMark()
public double getFlushPressure()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.