@InterfaceAudience.Private public class MetricsTableRequests extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ENABLE_TABLE_LATENCIES_METRICS_DEFAULT |
static String |
ENABLE_TABLE_LATENCIES_METRICS_KEY |
static String |
ENABLE_TABLE_QUERY_METER_METRICS_KEY |
static boolean |
ENABLE_TABLE_QUERY_METER_METRICS_KEY_DEFAULT |
| Constructor and Description |
|---|
MetricsTableRequests(TableName tableName,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
MetricRegistryInfo |
getMetricRegistryInfo() |
boolean |
isEnableTableLatenciesMetrics() |
boolean |
isEnabTableQueryMeterMetrics() |
void |
removeRegistry() |
void |
updateAppend(long time,
long blockBytesScanned)
Update the Append time histogram.
|
void |
updateCheckAndDelete(long time)
Update the CheckAndDelete time histogram.
|
void |
updateCheckAndMutate(long time,
long blockBytesScanned)
Update the CheckAndMutate time histogram.
|
void |
updateCheckAndPut(long time)
Update the CheckAndPut time histogram.
|
void |
updateDelete(long t)
Update the Delete time histogram
|
void |
updateDeleteBatch(long t)
Update the batch Delete time histogram
|
void |
updateGet(long time,
long blockBytesScanned)
Update the Get time histogram .
|
void |
updateIncrement(long time,
long blockBytesScanned)
Update the Increment time histogram.
|
void |
updatePut(long t)
Update the Put time histogram
|
void |
updatePutBatch(long t)
Update the batch Put time histogram
|
void |
updateScan(long time,
long responseCellSize,
long blockBytesScanned)
Update the scan metrics.
|
void |
updateTableReadQueryMeter()
Update table read QPS
|
void |
updateTableReadQueryMeter(long count)
Update table read QPS
|
void |
updateTableWriteQueryMeter()
Update table write QPS
|
void |
updateTableWriteQueryMeter(long count)
Update table write QPS
|
public static final String ENABLE_TABLE_LATENCIES_METRICS_KEY
public static final boolean ENABLE_TABLE_LATENCIES_METRICS_DEFAULT
public static final String ENABLE_TABLE_QUERY_METER_METRICS_KEY
public static final boolean ENABLE_TABLE_QUERY_METER_METRICS_KEY_DEFAULT
public MetricsTableRequests(TableName tableName, org.apache.hadoop.conf.Configuration conf)
public boolean isEnableTableLatenciesMetrics()
public boolean isEnabTableQueryMeterMetrics()
public void removeRegistry()
public void updatePut(long t)
t - time it tookpublic void updatePutBatch(long t)
t - time it tookpublic void updateDelete(long t)
t - time it tookpublic void updateDeleteBatch(long t)
t - time it tookpublic void updateGet(long time,
long blockBytesScanned)
time - time it tookblockBytesScanned - size of block bytes scanned to retrieve the responsepublic void updateIncrement(long time,
long blockBytesScanned)
time - time it tookblockBytesScanned - size of block bytes scanned to retrieve the responsepublic void updateAppend(long time,
long blockBytesScanned)
time - time it tookblockBytesScanned - size of block bytes scanned to retrieve the responsepublic void updateScan(long time,
long responseCellSize,
long blockBytesScanned)
time - response time of scanresponseCellSize - size of the scan resposneblockBytesScanned - size of block bytes scanned to retrieve the responsepublic void updateCheckAndDelete(long time)
time - time it tookpublic void updateCheckAndPut(long time)
time - time it tookpublic void updateCheckAndMutate(long time,
long blockBytesScanned)
time - time it tookpublic void updateTableReadQueryMeter(long count)
count - Number of occurrences to recordpublic void updateTableReadQueryMeter()
public void updateTableWriteQueryMeter(long count)
count - Number of occurrences to recordpublic void updateTableWriteQueryMeter()
public MetricRegistryInfo getMetricRegistryInfo()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.