org.apache.hadoop.hbase
Class HServerLoad.RegionLoad
java.lang.Object
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.
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
-
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