@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 |
| Modifier and Type | Field and Description |
|---|---|
private HashMap<TableName,MetricsTableLatenciesImpl.TableHistograms> |
histogramsByTable |
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 |
|---|---|
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, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistryInfoprivate final HashMap<TableName,MetricsTableLatenciesImpl.TableHistograms> histogramsByTable
public MetricsTableLatenciesImpl()
public MetricsTableLatenciesImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public static String qualifyMetricsName(TableName tableName, String metric)
public 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 tookCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.