Class StorageClusterStatusModel.Node.Region

java.lang.Object
org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel.Node.Region
All Implemented Interfaces:
Serializable
Enclosing class:
StorageClusterStatusModel.Node

public static class StorageClusterStatusModel.Node.Region extends Object implements Serializable
Represents a region hosted on a region server.
See Also:
  • Field Details

  • Constructor Details

    • Region

      public Region()
      Default constructor
    • Region

      public Region(byte[] name)
      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 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
      storefileIndexSizeKB - total size of store file indexes, in KB
  • Method Details

    • 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
    • getStorefileIndexSizeKB

      public long getStorefileIndexSizeKB()
      Returns the total size of store file indexes, in KB
    • getReadRequestsCount

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

      public long getCpRequestsCount()
      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

      Returns The total size of static index, in KB
    • 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
    • setCpRequestsCount

      public void setCpRequestsCount(long cpRequestsCount)
      Parameters:
      cpRequestsCount - 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
    • setStorefileIndexSizeKB

      public void setStorefileIndexSizeKB(long storefileIndexSizeKB)
      Parameters:
      storefileIndexSizeKB - total size of store file indexes, in KB