Class MetricsUserAggregateImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsUserAggregateImpl
- All Implemented Interfaces:
MetricsUserAggregate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MetricsUserAggregateSourceprivate final LossyCounting<MetricsUserSource>private final UserProviderProvider for mapping principal names to Users -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringReturns the active user to which authorization checks should be applied.private Stringprivate MetricsUserSourcegetOrCreateMetricsUser(String user) Returns return a singleton instance of MetricsUserAggregateSource or null in case of NoOpprivate voidincrementClientReadMetrics(MetricsUserSource userSource) private voidincrementClientWriteMetrics(MetricsUserSource userSource) private voidincrementFilteredReadRequests(MetricsUserSource userSource) voidupdateAppend(long time, long blockBytesScanned) voidupdateCheckAndMutate(long blockBytesScanned) voidupdateDelete(long t) voidvoidupdateGet(long time, long blockBytesScanned) voidupdateIncrement(long time, long blockBytesScanned) voidupdatePut(long t) voidvoidupdateReplay(long t) voidupdateScan(long time, long blockBytesScanned)
-
Field Details
-
userProvider
Provider for mapping principal names to Users -
source
-
userMetricLossyCounting
-
-
Constructor Details
-
MetricsUserAggregateImpl
-
-
Method Details
-
getActiveUser
Returns the active user to which authorization checks should be applied. If we are in the context of an RPC call, the remote user is used, otherwise the currently logged in user is used. -
getSource
Description copied from interface:MetricsUserAggregateReturns return a singleton instance of MetricsUserAggregateSource or null in case of NoOp- Specified by:
getSourcein interfaceMetricsUserAggregate
-
updatePut
- Specified by:
updatePutin interfaceMetricsUserAggregate
-
getClient
-
incrementClientReadMetrics
-
incrementFilteredReadRequests
-
incrementClientWriteMetrics
-
updateDelete
- Specified by:
updateDeletein interfaceMetricsUserAggregate
-
updateGet
- Specified by:
updateGetin interfaceMetricsUserAggregate
-
updateIncrement
- Specified by:
updateIncrementin interfaceMetricsUserAggregate
-
updateAppend
- Specified by:
updateAppendin interfaceMetricsUserAggregate
-
updateReplay
- Specified by:
updateReplayin interfaceMetricsUserAggregate
-
updateScan
- Specified by:
updateScanin interfaceMetricsUserAggregate
-
updateCheckAndMutate
- Specified by:
updateCheckAndMutatein interfaceMetricsUserAggregate
-
updateFilteredReadRequests
- Specified by:
updateFilteredReadRequestsin interfaceMetricsUserAggregate
-
updateReadRequestCount
- Specified by:
updateReadRequestCountin interfaceMetricsUserAggregate
-
getOrCreateMetricsUser
-