|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.RegionServerAccounting
@InterfaceAudience.Private public class RegionServerAccounting
RegionServerAccounting keeps record of some basic real time information about the Region Server. Currently, it only keeps record the global memstore size.
Constructor Summary | |
---|---|
RegionServerAccounting()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegionServerAccounting()
Method Detail |
---|
public long getGlobalMemstoreSize()
public long addAndGetGlobalMemstoreSize(long memStoreSize)
memStoreSize
- the Memstore size will be added to
the global Memstore size
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |