org.apache.hadoop.hbase
Class HServerLoad.RegionLoad
java.lang.Object
org.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.HServerLoad.RegionLoad
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- HServerLoad
public static class HServerLoad.RegionLoad
- extends org.apache.hadoop.io.VersionedWritable
Encapsulates per-region loading metrics.
Constructor Summary |
HServerLoad.RegionLoad()
Constructor, for Writable |
HServerLoad.RegionLoad(byte[] name,
int stores,
int storefiles,
int storeUncompressedSizeMB,
int storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB,
int rootIndexSizeKB,
int totalStaticIndexSizeKB,
int totalStaticBloomSizeKB,
long readRequestsCount,
long writeRequestsCount,
long totalCompactingKVs,
long currentCompactedKVs,
Set<String> coprocessors)
|
HServerLoad.RegionLoad
public HServerLoad.RegionLoad()
- Constructor, for Writable
HServerLoad.RegionLoad
public HServerLoad.RegionLoad(byte[] name,
int stores,
int storefiles,
int storeUncompressedSizeMB,
int storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB,
int rootIndexSizeKB,
int totalStaticIndexSizeKB,
int totalStaticBloomSizeKB,
long readRequestsCount,
long writeRequestsCount,
long totalCompactingKVs,
long currentCompactedKVs,
Set<String> coprocessors)
- Parameters:
name
- stores
- storefiles
- storeUncompressedSizeMB
- storefileSizeMB
- memstoreSizeMB
- storefileIndexSizeMB
- readRequestsCount
- writeRequestsCount
- totalCompactingKVs
- currentCompactedKVs
- coprocessors
-
getVersion
public byte getVersion()
- Specified by:
getVersion
in class org.apache.hadoop.io.VersionedWritable
- Returns:
- the object version number
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
getRequestsCount
public long getRequestsCount()
- Returns:
- the number of requests made to region
getReadRequestsCount
public long getReadRequestsCount()
- Returns:
- the number of read requests made to region
getWriteRequestsCount
public long getWriteRequestsCount()
- Returns:
- the number of read requests made to region
getRootIndexSizeKB
public int getRootIndexSizeKB()
- Returns:
- The current total size of root-level indexes for the region, in KB.
getTotalStaticIndexSizeKB
public int getTotalStaticIndexSizeKB()
- Returns:
- The total size of all index blocks, not just the root level, in KB.
getTotalStaticBloomSizeKB
public int getTotalStaticBloomSizeKB()
- Returns:
- The total size of all Bloom filter blocks, not just loaded into the
block cache, in KB.
getTotalCompactingKVs
public long getTotalCompactingKVs()
- Returns:
- the total number of kvs in current compaction
getCurrentCompactedKVs
public long getCurrentCompactedKVs()
- Returns:
- the number of already compacted kvs in current compaction
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
setReadRequestsCount
public void setReadRequestsCount(int requestsCount)
- Parameters:
requestsCount
- the number of read requests to region
setWriteRequestsCount
public void setWriteRequestsCount(int requestsCount)
- Parameters:
requestsCount
- the number of write requests to region
setTotalCompactingKVs
public void setTotalCompactingKVs(long totalCompactingKVs)
- Parameters:
totalCompactingKVs
- the number of kvs total in current compaction
setCurrentCompactedKVs
public void setCurrentCompactedKVs(long currentCompactedKVs)
- Parameters:
currentCompactedKVs
- the number of kvs already compacted in
current compaction
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.