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 storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB)
- Parameters:
name
- stores
- storefiles
- storefileSizeMB
- memstoreSizeMB
- storefileIndexSizeMB
-
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.