Class MetricsUserAggregateImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsUserAggregateImpl
- All Implemented Interfaces:
MetricsUserAggregate
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MetricsUserAggregateSource
private final LossyCounting<MetricsUserSource>
private final UserProvider
Provider for mapping principal names to Users -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
Returns the active user to which authorization checks should be applied.private String
private MetricsUserSource
getOrCreateMetricsUser
(String user) Returns return a singleton instance of MetricsUserAggregateSource or null in case of NoOpprivate void
incrementClientReadMetrics
(MetricsUserSource userSource) private void
incrementClientWriteMetrics
(MetricsUserSource userSource) private void
incrementFilteredReadRequests
(MetricsUserSource userSource) void
updateAppend
(long time, long blockBytesScanned) void
updateCheckAndMutate
(long blockBytesScanned) void
updateDelete
(long t) void
void
updateGet
(long time, long blockBytesScanned) void
updateIncrement
(long time, long blockBytesScanned) void
updatePut
(long t) void
void
updateReplay
(long t) void
updateScan
(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:MetricsUserAggregate
Returns return a singleton instance of MetricsUserAggregateSource or null in case of NoOp- Specified by:
getSource
in interfaceMetricsUserAggregate
-
updatePut
- Specified by:
updatePut
in interfaceMetricsUserAggregate
-
getClient
-
incrementClientReadMetrics
-
incrementFilteredReadRequests
-
incrementClientWriteMetrics
-
updateDelete
- Specified by:
updateDelete
in interfaceMetricsUserAggregate
-
updateGet
- Specified by:
updateGet
in interfaceMetricsUserAggregate
-
updateIncrement
- Specified by:
updateIncrement
in interfaceMetricsUserAggregate
-
updateAppend
- Specified by:
updateAppend
in interfaceMetricsUserAggregate
-
updateReplay
- Specified by:
updateReplay
in interfaceMetricsUserAggregate
-
updateScan
- Specified by:
updateScan
in interfaceMetricsUserAggregate
-
updateCheckAndMutate
- Specified by:
updateCheckAndMutate
in interfaceMetricsUserAggregate
-
updateFilteredReadRequests
- Specified by:
updateFilteredReadRequests
in interfaceMetricsUserAggregate
-
updateReadRequestCount
- Specified by:
updateReadRequestCount
in interfaceMetricsUserAggregate
-
getOrCreateMetricsUser
-