Package org.apache.hadoop.hbase
Class ServerMetricsBuilder.ServerMetricsImpl
java.lang.Object
org.apache.hadoop.hbase.ServerMetricsBuilder.ServerMetricsImpl
- All Implemented Interfaces:
ServerMetrics
- Enclosing class:
- ServerMetricsBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final longprivate final Sizeprivate final longprivate final Map<byte[],RegionMetrics> private final longprivate final longprivate final longprivate final ServerNameprivate final ReplicationLoadSinkprivate final List<ReplicationLoadSource>private final List<ServerTask>private final Sizeprivate final Map<byte[],UserMetrics> private final Stringprivate final intprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionServerMetricsImpl(ServerName serverName, int versionNumber, String version, long requestCountPerSecond, long requestCount, long readRequestsCount, long writeRequestsCount, Size usedHeapSize, Size maxHeapSize, int infoServerPort, List<ReplicationLoadSource> sources, ReplicationLoadSink sink, Map<byte[], RegionMetrics> regionStatus, Set<String> coprocessorNames, long reportTimestamp, long lastReportTimestamp, Map<byte[], UserMetrics> userMetrics, List<ServerTask> tasks, Map<String, Integer> regionCachedInfo) -
Method Summary
Modifier and TypeMethodDescriptionReturn the RegionServer-level and Region-level coprocessorsintlongReturns the last timestamp (server side) of generating this metricsReturns the maximum allowable size of the heaplongReturns 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 shelllongReturns the timestamp (server side) of generating this metricslongReturns total Number of requests from the start of the region server.longReturns 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 userReturns the string type version of a regionserver.intReturns the version number of a regionserver.longReturns total Number of write requests from the start of the region server.toString()
-
Field Details
-
serverName
-
versionNumber
-
version
-
requestCountPerSecond
-
requestCount
-
readRequestsCount
-
writeRequestsCount
-
usedHeapSize
-
maxHeapSize
-
infoServerPort
-
sources
-
sink
-
regionStatus
-
coprocessorNames
-
reportTimestamp
-
lastReportTimestamp
-
userMetrics
-
tasks
-
regionCachedInfo
-
-
Constructor Details
-
ServerMetricsImpl
ServerMetricsImpl(ServerName serverName, int versionNumber, String version, long requestCountPerSecond, long requestCount, long readRequestsCount, long writeRequestsCount, Size usedHeapSize, Size maxHeapSize, int infoServerPort, List<ReplicationLoadSource> sources, ReplicationLoadSink sink, Map<byte[], RegionMetrics> regionStatus, Set<String> coprocessorNames, long reportTimestamp, long lastReportTimestamp, Map<byte[], UserMetrics> userMetrics, List<ServerTask> tasks, Map<String, Integer> regionCachedInfo)
-
-
Method Details
-
getServerName
- Specified by:
getServerNamein interfaceServerMetrics
-
getVersionNumber
Description copied from interface:ServerMetricsReturns the version number of a regionserver.- Specified by:
getVersionNumberin interfaceServerMetrics
-
getVersion
Description copied from interface:ServerMetricsReturns the string type version of a regionserver.- Specified by:
getVersionin interfaceServerMetrics
-
getRequestCountPerSecond
Description copied from interface:ServerMetricsReturns the number of requests per second.- Specified by:
getRequestCountPerSecondin interfaceServerMetrics
-
getRequestCount
Description copied from interface:ServerMetricsReturns total Number of requests from the start of the region server.- Specified by:
getRequestCountin interfaceServerMetrics
-
getReadRequestsCount
Description copied from interface:ServerMetricsReturns total Number of read requests from the start of the region server.- Specified by:
getReadRequestsCountin interfaceServerMetrics
-
getWriteRequestsCount
Description copied from interface:ServerMetricsReturns total Number of write requests from the start of the region server.- Specified by:
getWriteRequestsCountin interfaceServerMetrics
-
getUsedHeapSize
Description copied from interface:ServerMetricsReturns the amount of used heap- Specified by:
getUsedHeapSizein interfaceServerMetrics
-
getMaxHeapSize
Description copied from interface:ServerMetricsReturns the maximum allowable size of the heap- Specified by:
getMaxHeapSizein interfaceServerMetrics
-
getInfoServerPort
- Specified by:
getInfoServerPortin interfaceServerMetrics
-
getReplicationLoadSourceList
Description copied from interface:ServerMetricsCall directly from client such as hbase shell- Specified by:
getReplicationLoadSourceListin interfaceServerMetrics- Returns:
- the list of ReplicationLoadSource
-
getReplicationLoadSourceMap
Description copied from interface:ServerMetricsCall directly from client such as hbase shell- Specified by:
getReplicationLoadSourceMapin interfaceServerMetrics- Returns:
- a map of ReplicationLoadSource list per peer id
-
getReplicationLoadSink
Description copied from interface:ServerMetricsCall directly from client such as hbase shell- Specified by:
getReplicationLoadSinkin interfaceServerMetrics
-
getRegionMetrics
Description copied from interface:ServerMetricsReturns region load metrics- Specified by:
getRegionMetricsin interfaceServerMetrics
-
getUserMetrics
Description copied from interface:ServerMetricsReturns metrics per user- Specified by:
getUserMetricsin interfaceServerMetrics
-
getCoprocessorNames
Description copied from interface:ServerMetricsReturn the RegionServer-level and Region-level coprocessors- Specified by:
getCoprocessorNamesin interfaceServerMetrics- Returns:
- string set of loaded RegionServer-level and Region-level coprocessors
-
getReportTimestamp
Description copied from interface:ServerMetricsReturns the timestamp (server side) of generating this metrics- Specified by:
getReportTimestampin interfaceServerMetrics
-
getLastReportTimestamp
Description copied from interface:ServerMetricsReturns the last timestamp (server side) of generating this metrics- Specified by:
getLastReportTimestampin interfaceServerMetrics
-
getTasks
Description copied from interface:ServerMetricsCalled directly from clients such as the hbase shell- Specified by:
getTasksin interfaceServerMetrics- Returns:
- the active monitored tasks
-
getRegionCachedInfo
Description copied from interface:ServerMetricsReturns the region cache information for the regions hosted on this server- Specified by:
getRegionCachedInfoin interfaceServerMetrics- Returns:
- map of region encoded name and the size of the region cached on this region server rounded to MB
-
toString
-