Package org.apache.hadoop.hbase
Class UserMetricsBuilder.UserMetricsImpl
java.lang.Object
org.apache.hadoop.hbase.UserMetricsBuilder.UserMetricsImpl
- All Implemented Interfaces:
UserMetrics
- Enclosing class:
- UserMetricsBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.UserMetrics
UserMetrics.ClientMetrics
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
UserMetrics.ClientMetrics> private final byte[]
-
Constructor Summary
ConstructorDescriptionUserMetricsImpl
(byte[] name, Map<String, UserMetrics.ClientMetrics> clientMetricsMap) -
Method Summary
Modifier and TypeMethodDescriptionReturns metrics per client(hostname)long
Returns count of filtered read requests for a userlong
Returns the number of read requests made by userbyte[]
Returns the user namelong
Returns the number of write requests made by usertoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.UserMetrics
getNameAsString, getRequestCount
-
Field Details
-
name
-
clientMetricsMap
-
-
Constructor Details
-
UserMetricsImpl
UserMetricsImpl(byte[] name, Map<String, UserMetrics.ClientMetrics> clientMetricsMap)
-
-
Method Details
-
getUserName
Description copied from interface:UserMetrics
Returns the user name- Specified by:
getUserName
in interfaceUserMetrics
-
getReadRequestCount
Description copied from interface:UserMetrics
Returns the number of read requests made by user- Specified by:
getReadRequestCount
in interfaceUserMetrics
-
getWriteRequestCount
Description copied from interface:UserMetrics
Returns the number of write requests made by user- Specified by:
getWriteRequestCount
in interfaceUserMetrics
-
getClientMetrics
Description copied from interface:UserMetrics
Returns metrics per client(hostname)- Specified by:
getClientMetrics
in interfaceUserMetrics
-
getFilteredReadRequests
Description copied from interface:UserMetrics
Returns count of filtered read requests for a user- Specified by:
getFilteredReadRequests
in interfaceUserMetrics
-
toString
-