@InterfaceAudience.Private public class MetricsTableLatenciesImpl extends BaseSourceImpl implements MetricsTableLatencies
MetricsTableLatencies to track latencies for one table in a
RegionServer.| Modifier and Type | Class and Description |
|---|---|
static class |
MetricsTableLatenciesImpl.TableHistograms |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryAPPEND_TIME, DELETE_BATCH_TIME, DELETE_TIME, GET_TIME, INCREMENT_TIME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, PUT_BATCH_TIME, PUT_TIME, SCAN_SIZE, SCAN_TIMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsTableLatenciesImpl() |
MetricsTableLatenciesImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
MetricsTableLatenciesImpl.TableHistograms |
getOrCreateTableHistogram(String tableName) |
static String |
qualifyMetricsName(TableName tableName,
String metric) |
void |
updateAppend(String tableName,
long t)
Update the Append time histogram.
|
void |
updateDelete(String tableName,
long t)
Update the Delete time histogram
|
void |
updateDeleteBatch(String tableName,
long t)
Update the batch Delete time histogram
|
void |
updateGet(String tableName,
long t)
Update the Get time histogram .
|
void |
updateIncrement(String tableName,
long t)
Update the Increment time histogram.
|
void |
updatePut(String tableName,
long t)
Update the Put time histogram
|
void |
updatePutBatch(String tableName,
long t)
Update the batch Put time histogram
|
void |
updateScanSize(String tableName,
long scanSize)
Update the scan size.
|
void |
updateScanTime(String tableName,
long t)
Update the scan time.
|
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogrampublic MetricsTableLatenciesImpl.TableHistograms getOrCreateTableHistogram(String tableName)
public void updatePut(String tableName, long t)
MetricsTableLatenciesupdatePut in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updatePutBatch(String tableName, long t)
MetricsTableLatenciesupdatePutBatch in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updateDelete(String tableName, long t)
MetricsTableLatenciesupdateDelete in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updateDeleteBatch(String tableName, long t)
MetricsTableLatenciesupdateDeleteBatch in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updateGet(String tableName, long t)
MetricsTableLatenciesupdateGet in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updateIncrement(String tableName, long t)
MetricsTableLatenciesupdateIncrement in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updateAppend(String tableName, long t)
MetricsTableLatenciesupdateAppend in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void updateScanSize(String tableName, long scanSize)
MetricsTableLatenciesupdateScanSize in interface MetricsTableLatenciestableName - The table the metric is forscanSize - size of the scanpublic void updateScanTime(String tableName, long t)
MetricsTableLatenciesupdateScanTime in interface MetricsTableLatenciestableName - The table the metric is fort - time it tookpublic void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourcegetMetrics in class BaseSourceImplCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.