@InterfaceAudience.Private public interface MetricsUserSource extends Comparable<MetricsUserSource>
Modifier and Type | Interface and Description |
---|---|
static interface |
MetricsUserSource.ClientMetrics |
Modifier and Type | Method and Description |
---|---|
void |
deregister() |
Map<String,MetricsUserSource.ClientMetrics> |
getClientMetrics()
Metrics collected at client level for a user(needed for reporting through clusterStatus and
hbtop currently)
|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
MetricsUserSource.ClientMetrics |
getOrCreateMetricsClient(String hostName)
Create a instance of ClientMetrics if not present otherwise return the previous one
|
String |
getUser() |
void |
register() |
void |
updateAppend(long t) |
void |
updateDelete(long t) |
void |
updateGet(long t) |
void |
updateIncrement(long t) |
void |
updatePut(long t) |
void |
updateReplay(long t) |
void |
updateScanTime(long t) |
compareTo
void register()
void deregister()
void updatePut(long t)
void updateDelete(long t)
void updateGet(long t)
void updateIncrement(long t)
void updateAppend(long t)
void updateReplay(long t)
void updateScanTime(long t)
void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
Map<String,MetricsUserSource.ClientMetrics> getClientMetrics()
MetricsUserSource.ClientMetrics getOrCreateMetricsClient(String hostName)
hostName
- hostname of the clientCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.