@InterfaceAudience.Private public class MetricsEditsReplaySourceImpl extends BaseSourceImpl implements MetricsEditsReplaySource
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, REPLAY_BATCH_SIZE_DESC, REPLAY_BATCH_SIZE_NAME, REPLAY_DATA_SIZE_DESC, REPLAY_DATA_SIZE_NAME, REPLAY_TIME_DESC, REPLAY_TIME_NAME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsEditsReplaySourceImpl() |
MetricsEditsReplaySourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
void |
init()
Clear out the metrics and re-prepare the source.
|
void |
updateReplayBatchSize(long size)
Add the batch size of each replay
|
void |
updateReplayDataSize(long size)
Add the payload data size of each replay
|
void |
updateReplayTime(long time)
Add the time a replay command took
|
decGauge, getMetricRegistryInfo, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
public void init()
BaseSource
init
in interface BaseSource
init
in class BaseSourceImpl
public void updateReplayTime(long time)
MetricsEditsReplaySource
updateReplayTime
in interface MetricsEditsReplaySource
public void updateReplayBatchSize(long size)
MetricsEditsReplaySource
updateReplayBatchSize
in interface MetricsEditsReplaySource
public void updateReplayDataSize(long size)
MetricsEditsReplaySource
updateReplayDataSize
in interface MetricsEditsReplaySource
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.