Class StorageClusterStatusModel.Node.Region
java.lang.Object
org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel.Node.Region
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StorageClusterStatusModel.Node
Represents a region hosted on a region server.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprivate intprivate byte[]private longprivate intprivate static final longprivate longprivate intprivate intprivate intprivate longprivate intprivate intprivate long -
Constructor Summary
ConstructorsConstructorDescriptionRegion()Default constructorRegion(byte[] name) ConstructorRegion(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, long storefileIndexSizeKB, long readRequestsCount, long cpRequestsCount, long writeRequestsCount, int rootIndexSizeKB, int totalStaticIndexSizeKB, int totalStaticBloomSizeKB, long totalCompactingKVs, long currentCompactedKVs) Constructor -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current total read requests made to regionlongReturns The number of current compacted key-valuesintReturns memstore size, in MBbyte[]getName()Returns the region namelongReturns the current total read requests made to regionintReturns The current total size of root-level indexes for the region, in KB.longReturns the total size of store file indexes, in KBintReturns the number of store filesintReturns the total size of store files, in MBintReturns the number of storeslongReturns The total number of compacting key-valuesintReturns The total size of static bloom, in KBintReturns The total size of static index, in KBlongReturns the current total write requests made to regionvoidsetCpRequestsCount(long cpRequestsCount) voidsetCurrentCompactedKVs(long currentCompactedKVs) voidsetMemStoreSizeMB(int memstoreSizeMB) voidsetName(byte[] name) voidsetReadRequestsCount(long readRequestsCount) voidsetRootIndexSizeKB(int rootIndexSizeKB) voidsetStorefileIndexSizeKB(long storefileIndexSizeKB) voidsetStorefiles(int storefiles) voidsetStorefileSizeMB(int storefileSizeMB) voidsetStores(int stores) voidsetTotalCompactingKVs(long totalCompactingKVs) voidsetTotalStaticBloomSizeKB(int totalStaticBloomSizeKB) voidsetTotalStaticIndexSizeKB(int totalStaticIndexSizeKB) voidsetWriteRequestsCount(long writeRequestsCount)
-
Field Details
-
serialVersionUID
- See Also:
-
name
-
stores
-
storefiles
-
storefileSizeMB
-
memstoreSizeMB
-
storefileIndexSizeKB
-
readRequestsCount
-
cpRequestsCount
-
writeRequestsCount
-
rootIndexSizeKB
-
totalStaticIndexSizeKB
-
totalStaticBloomSizeKB
-
totalCompactingKVs
-
currentCompactedKVs
-
-
Constructor Details
-
Region
public Region()Default constructor -
Region
Constructor- Parameters:
name- the region name
-
Region
public Region(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, long storefileIndexSizeKB, long readRequestsCount, long cpRequestsCount, long writeRequestsCount, int rootIndexSizeKB, int totalStaticIndexSizeKB, int totalStaticBloomSizeKB, long totalCompactingKVs, long currentCompactedKVs) Constructor- Parameters:
name- the region namestores- the number of storesstorefiles- the number of store filesstorefileSizeMB- total size of store files, in MBmemstoreSizeMB- total size of memstore, in MBstorefileIndexSizeKB- total size of store file indexes, in KB
-
-
Method Details
-
getName
Returns the region name -
getStores
Returns the number of stores -
getStorefiles
Returns the number of store files -
getStorefileSizeMB
Returns the total size of store files, in MB -
getMemStoreSizeMB
Returns memstore size, in MB -
getStorefileIndexSizeKB
Returns the total size of store file indexes, in KB -
getReadRequestsCount
Returns the current total read requests made to region -
getCpRequestsCount
Returns the current total read requests made to region -
getWriteRequestsCount
Returns the current total write requests made to region -
getRootIndexSizeKB
Returns The current total size of root-level indexes for the region, in KB. -
getTotalStaticIndexSizeKB
Returns The total size of static index, in KB -
getTotalStaticBloomSizeKB
Returns The total size of static bloom, in KB -
getTotalCompactingKVs
Returns The total number of compacting key-values -
getCurrentCompactedKVs
Returns The number of current compacted key-values -
setReadRequestsCount
- Parameters:
readRequestsCount- The current total read requests made to region
-
setCpRequestsCount
- Parameters:
cpRequestsCount- The current total read requests made to region
-
setRootIndexSizeKB
- Parameters:
rootIndexSizeKB- The current total size of root-level indexes for the region, in KB
-
setWriteRequestsCount
- Parameters:
writeRequestsCount- The current total write requests made to region
-
setCurrentCompactedKVs
- Parameters:
currentCompactedKVs- The completed count of key values in currently running compaction
-
setTotalCompactingKVs
- Parameters:
totalCompactingKVs- The total compacting key values in currently running compaction
-
setTotalStaticBloomSizeKB
- Parameters:
totalStaticBloomSizeKB- The total size of all Bloom filter blocks, not just loaded into the block cache, in KB.
-
setTotalStaticIndexSizeKB
- Parameters:
totalStaticIndexSizeKB- The total size of all index blocks, not just the root level, in KB.
-
setName
- Parameters:
name- the region name
-
setStores
- Parameters:
stores- the number of stores
-
setStorefiles
- Parameters:
storefiles- the number of store files
-
setStorefileSizeMB
- Parameters:
storefileSizeMB- total size of store files, in MB
-
setMemStoreSizeMB
- Parameters:
memstoreSizeMB- memstore size, in MB
-
setStorefileIndexSizeKB
- Parameters:
storefileIndexSizeKB- total size of store file indexes, in KB
-