Class MetricsUserSourceImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsUserSourceImpl
- All Implemented Interfaces:
Comparable<MetricsUserSource>,MetricsUserSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classNested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.MetricsUserSource
MetricsUserSource.ClientMetrics -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MetricHistogramprivate MutableFastCounterprivate AtomicBooleanprivate MetricHistogramprivate MetricHistogramprivate final intprivate MetricHistogramprivate static final org.slf4j.Loggerprivate MetricHistogramprivate final DynamicMetricsRegistryprivate MetricHistogramprivate MetricHistogramprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(MetricsUserSource source) voidbooleanMetrics collected at client level for a user(needed for reporting through clusterStatus and hbtop currently)voidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) getOrCreateMetricsClient(String client) Create a instance of ClientMetrics if not present otherwise return the previous onegetUser()inthashCode()voidregister()(package private) voidsnapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder mrb, boolean ignored) voidupdateAppend(long time, long blockBytesScanned) voidupdateCheckAndMutate(long blockBytesScanned) voidupdateDelete(long t) voidupdateGet(long time, long blockBytesScanned) voidupdateIncrement(long time, long blockBytesScanned) voidupdatePut(long t) voidupdateReplay(long t) voidupdateScan(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:
registerin interfaceMetricsUserSource
-
deregister
- Specified by:
deregisterin interfaceMetricsUserSource
-
getUser
- Specified by:
getUserin interfaceMetricsUserSource
-
compareTo
- Specified by:
compareToin interfaceComparable<MetricsUserSource>
-
hashCode
-
equals
-
snapshot
-
updatePut
- Specified by:
updatePutin interfaceMetricsUserSource
-
updateDelete
- Specified by:
updateDeletein interfaceMetricsUserSource
-
updateGet
- Specified by:
updateGetin interfaceMetricsUserSource
-
updateIncrement
- Specified by:
updateIncrementin interfaceMetricsUserSource
-
updateAppend
- Specified by:
updateAppendin interfaceMetricsUserSource
-
updateReplay
- Specified by:
updateReplayin interfaceMetricsUserSource
-
updateScan
- Specified by:
updateScanin interfaceMetricsUserSource
-
updateCheckAndMutate
- Specified by:
updateCheckAndMutatein interfaceMetricsUserSource
-
getMetrics
- Specified by:
getMetricsin interfaceMetricsUserSource
-
getClientMetrics
Description copied from interface:MetricsUserSourceMetrics collected at client level for a user(needed for reporting through clusterStatus and hbtop currently)- Specified by:
getClientMetricsin interfaceMetricsUserSource- Returns:
- metrics per hostname
-
getOrCreateMetricsClient
Description copied from interface:MetricsUserSourceCreate a instance of ClientMetrics if not present otherwise return the previous one- Specified by:
getOrCreateMetricsClientin interfaceMetricsUserSource- Parameters:
client- hostname of the client- Returns:
- Instance of ClientMetrics
-