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 memcacheSizeMB, int storefileIndexSizeMB)
           
 
Method Summary
 int getMemcacheSizeMB()
           
 byte[] getName()
           
 int getStorefileIndexSizeMB()
           
 int getStorefiles()
           
 int getStores()
           
 void readFields(DataInput in)
           
 void setMemcacheSizeMB(int memcacheSizeMB)
           
 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 memcacheSizeMB,
                              int storefileIndexSizeMB)
Parameters:
name -
stores -
storefiles -
memcacheSizeMB -
storefileIndexSizeMB -
Method Detail

getName

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

getStores

public int getStores()
Returns:
the number of stores

getStorefiles

public int getStorefiles()
Returns:
the number of storefiles

getMemcacheSizeMB

public int getMemcacheSizeMB()
Returns:
the memcache 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

setMemcacheSizeMB

public void setMemcacheSizeMB(int memcacheSizeMB)
Parameters:
memcacheSizeMB - the memcache 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


Copyright © 2008 The Apache Software Foundation