@InterfaceAudience.Private public class MetricsEditsReplaySourceImpl extends BaseSourceImpl implements MetricsEditsReplaySource
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private MetricHistogram |
replayBatchSizeHisto |
private MetricHistogram |
replayDataSizeHisto |
private MetricHistogram |
replayTimeHisto |
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
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, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
private static final org.apache.commons.logging.Log LOG
private MetricHistogram replayTimeHisto
private MetricHistogram replayBatchSizeHisto
private MetricHistogram replayDataSizeHisto
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.