org.apache.hadoop.hbase
Class HServerLoad.RegionLoad

java.lang.Object
  extended by org.apache.hadoop.hbase.HServerLoad.RegionLoad
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing class:
HServerLoad

public static class HServerLoad.RegionLoad
extends Object
implements org.apache.hadoop.io.Writable

Encapsulates per-region loading metrics.


Constructor Summary
HServerLoad.RegionLoad()
          Constructor, for Writable
HServerLoad.RegionLoad(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, int storefileIndexSizeMB)
           
 
Method Summary
 int getMemStoreSizeMB()
           
 byte[] getName()
           
 String getNameAsString()
           
 int getStorefileIndexSizeMB()
           
 int getStorefiles()
           
 int getStorefileSizeMB()
           
 int getStores()
           
 void readFields(DataInput in)
           
 void setMemStoreSizeMB(int memstoreSizeMB)
           
 void setName(byte[] name)
           
 void setStorefileIndexSizeMB(int storefileIndexSizeMB)
           
 void setStorefiles(int storefiles)
           
 void setStores(int stores)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HServerLoad.RegionLoad

public HServerLoad.RegionLoad()
Constructor, for Writable


HServerLoad.RegionLoad

public HServerLoad.RegionLoad(byte[] name,
                              int stores,
                              int storefiles,
                              int storefileSizeMB,
                              int memstoreSizeMB,
                              int storefileIndexSizeMB)
Parameters:
name -
stores -
storefiles -
storefileSizeMB -
memstoreSizeMB -
storefileIndexSizeMB -
Method Detail

getName

public byte[] getName()
Returns:
the region name

getNameAsString

public String getNameAsString()
Returns:
the region name as a string

getStores

public int getStores()
Returns:
the number of stores

getStorefiles

public int getStorefiles()
Returns:
the number of storefiles

getStorefileSizeMB

public int getStorefileSizeMB()
Returns:
the total size of the storefiles, in MB

getMemStoreSizeMB

public int getMemStoreSizeMB()
Returns:
the memstore size, in MB

getStorefileIndexSizeMB

public int getStorefileIndexSizeMB()
Returns:
the approximate size of storefile indexes on the heap, in MB

setName

public void setName(byte[] name)
Parameters:
name - the region name

setStores

public void setStores(int stores)
Parameters:
stores - the number of stores

setStorefiles

public void setStorefiles(int storefiles)
Parameters:
storefiles - the number of storefiles

setMemStoreSizeMB

public void setMemStoreSizeMB(int memstoreSizeMB)
Parameters:
memstoreSizeMB - the memstore size, in MB

setStorefileIndexSizeMB

public void setStorefileIndexSizeMB(int storefileIndexSizeMB)
Parameters:
storefileIndexSizeMB - the approximate size of storefile indexes on the heap, in MB

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


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