@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, registry
APPEND_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_TIME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsTableLatenciesImpl() |
MetricsTableLatenciesImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
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, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistryInfo
public MetricsTableLatenciesImpl.TableHistograms getOrCreateTableHistogram(String tableName)
public void updatePut(String tableName, long t)
MetricsTableLatencies
updatePut
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updatePutBatch(String tableName, long t)
MetricsTableLatencies
updatePutBatch
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updateDelete(String tableName, long t)
MetricsTableLatencies
updateDelete
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updateDeleteBatch(String tableName, long t)
MetricsTableLatencies
updateDeleteBatch
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updateGet(String tableName, long t)
MetricsTableLatencies
updateGet
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updateIncrement(String tableName, long t)
MetricsTableLatencies
updateIncrement
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updateAppend(String tableName, long t)
MetricsTableLatencies
updateAppend
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookpublic void updateScanSize(String tableName, long scanSize)
MetricsTableLatencies
updateScanSize
in interface MetricsTableLatencies
tableName
- The table the metric is forscanSize
- size of the scanpublic void updateScanTime(String tableName, long t)
MetricsTableLatencies
updateScanTime
in interface MetricsTableLatencies
tableName
- The table the metric is fort
- time it tookCopyright © 2007–2019 Cloudera. All rights reserved.