@InterfaceAudience.Private public class RegionServerAccounting extends Object
Constructor and Description |
---|
RegionServerAccounting() |
Modifier and Type | Method and Description |
---|---|
long |
addAndGetGlobalMemstoreSize(long memStoreSize) |
long |
addAndGetRegionReplayEditsSize(byte[] regionName,
long memStoreSize)
Add memStoreSize to replayEditsPerRegion.
|
void |
clearRegionReplayEditsSize(byte[] regionName)
Clear a region from replayEditsPerRegion.
|
long |
getGlobalMemstoreSize() |
long |
rollbackRegionReplayEditsSize(byte[] regionName)
Roll back the global MemStore size for a specified region when this region
can't be opened.
|
public long getGlobalMemstoreSize()
public long addAndGetGlobalMemstoreSize(long memStoreSize)
memStoreSize
- the Memstore size will be added to
the global Memstore sizepublic long addAndGetRegionReplayEditsSize(byte[] regionName, long memStoreSize)
regionName
- region name.memStoreSize
- the Memstore size will be added to replayEditsPerRegion.public long rollbackRegionReplayEditsSize(byte[] regionName)
regionName
- the region which could not open.public void clearRegionReplayEditsSize(byte[] regionName)
regionName
- region name.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.