org.apache.hadoop.hbase.regionserver
Class RegionServerAccounting

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.RegionServerAccounting

public class RegionServerAccounting
extends Object

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 getGlobalMemstoreSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionServerAccounting

public RegionServerAccounting()
Method Detail

getGlobalMemstoreSize

public long getGlobalMemstoreSize()
Returns:
the global Memstore size in the RegionServer

addAndGetGlobalMemstoreSize

public long addAndGetGlobalMemstoreSize(long memStoreSize)
Parameters:
memStoreSize - the Memstore size will be added to the global Memstore size
Returns:
the global Memstore size in the RegionServer


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.