org.apache.hadoop.hbase.rest.model
Class StorageClusterStatusModel.Node.Region

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel.Node.Region
Enclosing class:
StorageClusterStatusModel.Node

public static class StorageClusterStatusModel.Node.Region
extends Object

Represents a region hosted on a region server.


Constructor Summary
StorageClusterStatusModel.Node.Region()
          Default constructor
StorageClusterStatusModel.Node.Region(byte[] name)
          Constructor
StorageClusterStatusModel.Node.Region(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, int storefileIndexSizeMB, long readRequestsCount, long writeRequestsCount, int rootIndexSizeKB, int totalStaticIndexSizeKB, int totalStaticBloomSizeKB, long totalCompactingKVs, long currentCompactedKVs)
          Constructor
 
Method Summary
 long getCurrentCompactedKVs()
           
 int getMemstoreSizeMB()
           
 byte[] getName()
           
 long getReadRequestsCount()
           
 int getRootIndexSizeKB()
           
 int getStorefileIndexSizeMB()
           
 int getStorefiles()
           
 int getStorefileSizeMB()
           
 int getStores()
           
 long getTotalCompactingKVs()
           
 int getTotalStaticBloomSizeKB()
           
 int getTotalStaticIndexSizeKB()
           
 long getWriteRequestsCount()
           
 void setCurrentCompactedKVs(long currentCompactedKVs)
           
 void setMemstoreSizeMB(int memstoreSizeMB)
           
 void setName(byte[] name)
           
 void setReadRequestsCount(long readRequestsCount)
           
 void setRootIndexSizeKB(int rootIndexSizeKB)
           
 void setStorefileIndexSizeMB(int storefileIndexSizeMB)
           
 void setStorefiles(int storefiles)
           
 void setStorefileSizeMB(int storefileSizeMB)
           
 void setStores(int stores)
           
 void setTotalCompactingKVs(long totalCompactingKVs)
           
 void setTotalStaticBloomSizeKB(int totalStaticBloomSizeKB)
           
 void setTotalStaticIndexSizeKB(int totalStaticIndexSizeKB)
           
 void setWriteRequestsCount(long writeRequestsCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageClusterStatusModel.Node.Region

public StorageClusterStatusModel.Node.Region()
Default constructor


StorageClusterStatusModel.Node.Region

public StorageClusterStatusModel.Node.Region(byte[] name)
Constructor

Parameters:
name - the region name

StorageClusterStatusModel.Node.Region

public StorageClusterStatusModel.Node.Region(byte[] name,
                                             int stores,
                                             int storefiles,
                                             int storefileSizeMB,
                                             int memstoreSizeMB,
                                             int storefileIndexSizeMB,
                                             long readRequestsCount,
                                             long writeRequestsCount,
                                             int rootIndexSizeKB,
                                             int totalStaticIndexSizeKB,
                                             int totalStaticBloomSizeKB,
                                             long totalCompactingKVs,
                                             long currentCompactedKVs)
Constructor

Parameters:
name - the region name
stores - the number of stores
storefiles - the number of store files
storefileSizeMB - total size of store files, in MB
memstoreSizeMB - total size of memstore, in MB
storefileIndexSizeMB - total size of store file indexes, in MB
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 store files

getStorefileSizeMB

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

getMemstoreSizeMB

public int getMemstoreSizeMB()
Returns:
memstore size, in MB

getStorefileIndexSizeMB

public int getStorefileIndexSizeMB()
Returns:
the total size of store file indexes, in MB

getReadRequestsCount

public long getReadRequestsCount()
Returns:
the current total read requests made to region

getWriteRequestsCount

public long getWriteRequestsCount()
Returns:
the current total write 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 static index, in KB

getTotalStaticBloomSizeKB

public int getTotalStaticBloomSizeKB()
Returns:
The total size of static bloom, in KB

getTotalCompactingKVs

public long getTotalCompactingKVs()
Returns:
The total number of compacting key-values

getCurrentCompactedKVs

public long getCurrentCompactedKVs()
Returns:
The number of current compacted key-values

setReadRequestsCount

public void setReadRequestsCount(long readRequestsCount)
Parameters:
readRequestsCount - The current total read requests made to region

setRootIndexSizeKB

public void setRootIndexSizeKB(int rootIndexSizeKB)
Parameters:
rootIndexSizeKB - The current total size of root-level indexes for the region, in KB

setWriteRequestsCount

public void setWriteRequestsCount(long writeRequestsCount)
Parameters:
writeRequestsCount - The current total write requests made to region

setCurrentCompactedKVs

public void setCurrentCompactedKVs(long currentCompactedKVs)
Parameters:
currentCompactedKVs - The completed count of key values in currently running compaction

setTotalCompactingKVs

public void setTotalCompactingKVs(long totalCompactingKVs)
Parameters:
totalCompactingKVs - The total compacting key values in currently running compaction

setTotalStaticBloomSizeKB

public void setTotalStaticBloomSizeKB(int totalStaticBloomSizeKB)
Parameters:
totalStaticBloomSizeKB - The total size of all Bloom filter blocks, not just loaded into the block cache, in KB.

setTotalStaticIndexSizeKB

public void setTotalStaticIndexSizeKB(int totalStaticIndexSizeKB)
Parameters:
totalStaticIndexSizeKB - The total size of all index blocks, not just the root level, in KB.

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 store files

setStorefileSizeMB

public void setStorefileSizeMB(int storefileSizeMB)
Parameters:
storefileSizeMB - total size of store files, in MB

setMemstoreSizeMB

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

setStorefileIndexSizeMB

public void setStorefileIndexSizeMB(int storefileIndexSizeMB)
Parameters:
storefileIndexSizeMB - total size of store file indexes, in MB


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