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
Modifier and TypeFieldDescriptionprivate final int
private final long
private final Size
private final Map<byte[],
RegionMetrics> private final long
private final long
private final long
private final ServerName
private final ReplicationLoadSink
private final List<ReplicationLoadSource>
private final List<ServerTask>
private final Size
private final Map<byte[],
UserMetrics> private final String
private final int
-
Constructor Summary
ConstructorDescriptionServerMetricsImpl
(ServerName serverName, int versionNumber, String version, long requestCountPerSecond, long requestCount, 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 coprocessorsint
long
Returns the last timestamp (server side) of generating this metricsReturns the maximum allowable size of the heapReturns 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 userReturns the string type version of a regionserver.int
Returns the version number of a regionserver.toString()
-
Field Details
-
serverName
-
versionNumber
-
version
-
requestCountPerSecond
-
requestCount
-
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, 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:
getServerName
in interfaceServerMetrics
-
getVersionNumber
Description copied from interface:ServerMetrics
Returns the version number of a regionserver.- Specified by:
getVersionNumber
in interfaceServerMetrics
-
getVersion
Description copied from interface:ServerMetrics
Returns the string type version of a regionserver.- Specified by:
getVersion
in interfaceServerMetrics
-
getRequestCountPerSecond
Description copied from interface:ServerMetrics
Returns the number of requests per second.- Specified by:
getRequestCountPerSecond
in interfaceServerMetrics
-
getRequestCount
Description copied from interface:ServerMetrics
Returns total Number of requests from the start of the region server.- Specified by:
getRequestCount
in interfaceServerMetrics
-
getUsedHeapSize
Description copied from interface:ServerMetrics
Returns the amount of used heap- Specified by:
getUsedHeapSize
in interfaceServerMetrics
-
getMaxHeapSize
Description copied from interface:ServerMetrics
Returns the maximum allowable size of the heap- Specified by:
getMaxHeapSize
in interfaceServerMetrics
-
getInfoServerPort
- Specified by:
getInfoServerPort
in interfaceServerMetrics
-
getReplicationLoadSourceList
Description copied from interface:ServerMetrics
Call directly from client such as hbase shell- Specified by:
getReplicationLoadSourceList
in interfaceServerMetrics
- Returns:
- the list of ReplicationLoadSource
-
getReplicationLoadSourceMap
Description copied from interface:ServerMetrics
Call directly from client such as hbase shell- Specified by:
getReplicationLoadSourceMap
in interfaceServerMetrics
- Returns:
- a map of ReplicationLoadSource list per peer id
-
getReplicationLoadSink
Description copied from interface:ServerMetrics
Call directly from client such as hbase shell- Specified by:
getReplicationLoadSink
in interfaceServerMetrics
-
getRegionMetrics
Description copied from interface:ServerMetrics
Returns region load metrics- Specified by:
getRegionMetrics
in interfaceServerMetrics
-
getUserMetrics
Description copied from interface:ServerMetrics
Returns metrics per user- Specified by:
getUserMetrics
in interfaceServerMetrics
-
getCoprocessorNames
Description copied from interface:ServerMetrics
Return the RegionServer-level and Region-level coprocessors- Specified by:
getCoprocessorNames
in interfaceServerMetrics
- Returns:
- string set of loaded RegionServer-level and Region-level coprocessors
-
getReportTimestamp
Description copied from interface:ServerMetrics
Returns the timestamp (server side) of generating this metrics- Specified by:
getReportTimestamp
in interfaceServerMetrics
-
getLastReportTimestamp
Description copied from interface:ServerMetrics
Returns the last timestamp (server side) of generating this metrics- Specified by:
getLastReportTimestamp
in interfaceServerMetrics
-
getTasks
Description copied from interface:ServerMetrics
Called directly from clients such as the hbase shell- Specified by:
getTasks
in interfaceServerMetrics
- Returns:
- the active monitored tasks
-
getRegionCachedInfo
Description copied from interface:ServerMetrics
Returns the region cache information for the regions hosted on this server- Specified by:
getRegionCachedInfo
in interfaceServerMetrics
- Returns:
- map of region encoded name and the size of the region cached on this region server rounded to MB
-
toString
-