Class MetricsUserSourceImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsUserSourceImpl
- All Implemented Interfaces:
Comparable<MetricsUserSource>
,MetricsUserSource
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.MetricsUserSource
MetricsUserSource.ClientMetrics
-
Field Summary
Modifier and TypeFieldDescriptionprivate MetricHistogram
private MutableFastCounter
private AtomicBoolean
private MetricHistogram
private MetricHistogram
private final int
private MetricHistogram
private static final org.slf4j.Logger
private MetricHistogram
private final DynamicMetricsRegistry
private MetricHistogram
private MetricHistogram
private final String
private final String
private final String
private final String
private final String
private final String
private final String
private final String
private final String
private final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(MetricsUserSource source) void
boolean
Metrics collected at client level for a user(needed for reporting through clusterStatus and hbtop currently)void
getMetrics
(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) getOrCreateMetricsClient
(String client) Create a instance of ClientMetrics if not present otherwise return the previous onegetUser()
int
hashCode()
void
register()
(package private) void
snapshot
(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored) void
updateAppend
(long time, long blockBytesScanned) void
updateCheckAndMutate
(long blockBytesScanned) void
updateDelete
(long t) void
updateGet
(long time, long blockBytesScanned) void
updateIncrement
(long time, long blockBytesScanned) void
updatePut
(long t) void
updateReplay
(long t) void
updateScan
(long time, long blockBytesScanned)
-
Field Details
-
LOG
-
userNamePrefix
-
user
-
userGetKey
-
userScanTimeKey
-
userPutKey
-
userDeleteKey
-
userIncrementKey
-
userAppendKey
-
userReplayKey
-
userBlockBytesScannedKey
-
getHisto
-
scanTimeHisto
-
putHisto
-
deleteHisto
-
incrementHisto
-
appendHisto
-
replayHisto
-
blockBytesScannedCount
-
hashCode
-
closed
-
registry
-
clientMetricsMap
-
-
Constructor Details
-
MetricsUserSourceImpl
-
-
Method Details
-
register
- Specified by:
register
in interfaceMetricsUserSource
-
deregister
- Specified by:
deregister
in interfaceMetricsUserSource
-
getUser
- Specified by:
getUser
in interfaceMetricsUserSource
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MetricsUserSource>
-
hashCode
-
equals
-
snapshot
-
updatePut
- Specified by:
updatePut
in interfaceMetricsUserSource
-
updateDelete
- Specified by:
updateDelete
in interfaceMetricsUserSource
-
updateGet
- Specified by:
updateGet
in interfaceMetricsUserSource
-
updateIncrement
- Specified by:
updateIncrement
in interfaceMetricsUserSource
-
updateAppend
- Specified by:
updateAppend
in interfaceMetricsUserSource
-
updateReplay
- Specified by:
updateReplay
in interfaceMetricsUserSource
-
updateScan
- Specified by:
updateScan
in interfaceMetricsUserSource
-
updateCheckAndMutate
- Specified by:
updateCheckAndMutate
in interfaceMetricsUserSource
-
getMetrics
- Specified by:
getMetrics
in interfaceMetricsUserSource
-
getClientMetrics
Description copied from interface:MetricsUserSource
Metrics collected at client level for a user(needed for reporting through clusterStatus and hbtop currently)- Specified by:
getClientMetrics
in interfaceMetricsUserSource
- Returns:
- metrics per hostname
-
getOrCreateMetricsClient
Description copied from interface:MetricsUserSource
Create a instance of ClientMetrics if not present otherwise return the previous one- Specified by:
getOrCreateMetricsClient
in interfaceMetricsUserSource
- Parameters:
client
- hostname of the client- Returns:
- Instance of ClientMetrics
-