Class StorageClusterStatusModel.Node

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

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

  • Constructor Details

    • Node

      public Node()
      Default constructor
    • Node

      public Node(String name, long startCode)
      Constructor
      Parameters:
      name - the region server name
      startCode - the region server's start code
  • Method Details

    • addRegion

      public void addRegion(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, long storefileIndexSizeKB, long readRequestsCount, long writeRequestsCount, int rootIndexSizeKB, int totalStaticIndexSizeKB, int totalStaticBloomSizeKB, long totalCompactingKVs, long currentCompactedKVs)
      Add a region name to the list
      Parameters:
      name - the region name
    • getRegion

      Parameters:
      index - the index
      Returns:
      the region name
    • getName

      public String getName()
      Returns the region server's name
    • getStartCode

      public long getStartCode()
      Returns the region server's start code
    • getHeapSizeMB

      public int getHeapSizeMB()
      Returns the current heap size, in MB
    • getMaxHeapSizeMB

      public int getMaxHeapSizeMB()
      Returns the maximum heap size, in MB
    • getRegions

      Returns the list of regions served by the region server
    • getRequests

      public long getRequests()
      Returns the number of requests per second processed by the region server
    • setName

      public void setName(String name)
      Parameters:
      name - the region server's hostname
    • setStartCode

      public void setStartCode(long startCode)
      Parameters:
      startCode - the region server's start code
    • setHeapSizeMB

      public void setHeapSizeMB(int heapSizeMB)
      Parameters:
      heapSizeMB - the current heap size, in MB
    • setMaxHeapSizeMB

      public void setMaxHeapSizeMB(int maxHeapSizeMB)
      Parameters:
      maxHeapSizeMB - the maximum heap size, in MB
    • setRegions

      Parameters:
      regions - a list of regions served by the region server
    • setRequests

      public void setRequests(long requests)
      Parameters:
      requests - the number of requests per second processed by the region server