private static class UserMetricsBuilder.UserMetricsImpl extends Object implements UserMetrics
UserMetrics.ClientMetrics
Modifier and Type | Field and Description |
---|---|
private Map<String,UserMetrics.ClientMetrics> |
clientMetricsMap |
private byte[] |
name |
Constructor and Description |
---|
UserMetricsImpl(byte[] name,
Map<String,UserMetrics.ClientMetrics> clientMetricsMap) |
Modifier and Type | Method and Description |
---|---|
Map<String,UserMetrics.ClientMetrics> |
getClientMetrics()
Returns metrics per client(hostname)
|
long |
getFilteredReadRequests()
Returns count of filtered read requests for a user
|
long |
getReadRequestCount()
Returns the number of read requests made by user
|
byte[] |
getUserName()
Returns the user name
|
long |
getWriteRequestCount()
Returns the number of write requests made by user
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNameAsString, getRequestCount
private final byte[] name
private final Map<String,UserMetrics.ClientMetrics> clientMetricsMap
UserMetricsImpl(byte[] name, Map<String,UserMetrics.ClientMetrics> clientMetricsMap)
public byte[] getUserName()
UserMetrics
getUserName
in interface UserMetrics
public long getReadRequestCount()
UserMetrics
getReadRequestCount
in interface UserMetrics
public long getWriteRequestCount()
UserMetrics
getWriteRequestCount
in interface UserMetrics
public Map<String,UserMetrics.ClientMetrics> getClientMetrics()
UserMetrics
getClientMetrics
in interface UserMetrics
public long getFilteredReadRequests()
UserMetrics
getFilteredReadRequests
in interface UserMetrics
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.