Interface ServerMetrics

All Known Implementing Classes:
ServerMetricsBuilder.ServerMetricsImpl

@Public public interface ServerMetrics
This class is used for exporting current state of load on a RegionServer.
  • Method Details

    • getServerName

    • getVersionNumber

      default int getVersionNumber()
      Returns the version number of a regionserver.
    • getVersion

      default String getVersion()
      Returns the string type version of a regionserver.
    • getRequestCountPerSecond

      Returns the number of requests per second.
    • getRequestCount

      Returns total Number of requests from the start of the region server.
    • getReadRequestsCount

      Returns total Number of read requests from the start of the region server.
    • getWriteRequestsCount

      Returns total Number of write requests from the start of the region server.
    • getUsedHeapSize

      Returns the amount of used heap
    • getMaxHeapSize

      Returns the maximum allowable size of the heap
    • getInfoServerPort

    • getReplicationLoadSourceList

      Call directly from client such as hbase shell
      Returns:
      the list of ReplicationLoadSource
    • getReplicationLoadSourceMap

      Call directly from client such as hbase shell
      Returns:
      a map of ReplicationLoadSource list per peer id
    • getReplicationLoadSink

      Call directly from client such as hbase shell
    • getRegionMetrics

      Returns region load metrics
    • getUserMetrics

      Returns metrics per user
    • getCoprocessorNames

      Return the RegionServer-level and Region-level coprocessors
      Returns:
      string set of loaded RegionServer-level and Region-level coprocessors
    • getReportTimestamp

      Returns the timestamp (server side) of generating this metrics
    • getLastReportTimestamp

      Returns the last timestamp (server side) of generating this metrics
    • getTasks

      @Nullable List<ServerTask> getTasks()
      Called directly from clients such as the hbase shell
      Returns:
      the active monitored tasks
    • getRegionCachedInfo

      Returns the region cache information for the regions hosted on this server
      Returns:
      map of region encoded name and the size of the region cached on this region server rounded to MB
    • getCacheFreeSize

      default long getCacheFreeSize()
      The available cache space on this region server (bytes), if reported in the server load.
    • getRegionColdDataSize

      Returns the region cold data information for the regions hosted on this server. Here, cold data refers only to region data that is classified as cold by the DataTieringManager according to the configured priority logic. These data should be kept out of block cache.
      Returns:
      map of region encoded name and its total cold data size, rounded to MB