Package org.apache.hadoop.hbase
Interface ServerMetrics
- All Known Implementing Classes:
ServerMetricsBuilder.ServerMetricsImpl
This class is used for exporting current state of load on a RegionServer.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the RegionServer-level and Region-level coprocessorsint
long
Returns the last timestamp (server side) of generating this metricsReturns the maximum allowable size of the heaplong
Returns total Number of read requests from the start of the region server.Returns the region cache information for the regions hosted on this serverMap<byte[],
RegionMetrics> Returns region load metricsCall directly from client such as hbase shellCall directly from client such as hbase shellCall directly from client such as hbase shelllong
Returns the timestamp (server side) of generating this metricslong
Returns total Number of requests from the start of the region server.long
Returns the number of requests per second.getTasks()
Called directly from clients such as the hbase shellReturns the amount of used heapMap<byte[],
UserMetrics> Returns metrics per userdefault String
Returns the string type version of a regionserver.default int
Returns the version number of a regionserver.long
Returns total Number of write requests from the start of the region server.
-
Method Details
-
getServerName
-
getVersionNumber
Returns the version number of a regionserver. -
getVersion
Returns the string type version of a regionserver. -
getRequestCountPerSecond
long getRequestCountPerSecond()Returns the number of requests per second. -
getRequestCount
long getRequestCount()Returns total Number of requests from the start of the region server. -
getReadRequestsCount
long getReadRequestsCount()Returns total Number of read requests from the start of the region server. -
getWriteRequestsCount
long 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
int 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
Map<byte[],RegionMetrics> getRegionMetrics()Returns region load metrics -
getUserMetrics
Map<byte[],UserMetrics> 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
long getReportTimestamp()Returns the timestamp (server side) of generating this metrics -
getLastReportTimestamp
long getLastReportTimestamp()Returns the last timestamp (server side) of generating this metrics -
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
-