org.apache.hadoop.hbase.regionserver.wal
Class MetricsEditsReplaySourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.regionserver.wal.MetricsEditsReplaySourceImpl
- All Implemented Interfaces:
- BaseSource, MetricsEditsReplaySource, org.apache.hadoop.metrics2.MetricsSource
public class MetricsEditsReplaySourceImpl
- extends BaseSourceImpl
- implements MetricsEditsReplaySource
Hadoop1 implementation of MetricsMasterSource. Implements BaseSource through BaseSourceImpl,
following the pattern
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile |
MetricsEditsReplaySourceImpl
public MetricsEditsReplaySourceImpl()
MetricsEditsReplaySourceImpl
public MetricsEditsReplaySourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext)
init
public void init()
- Description copied from interface:
BaseSource
- Clear out the metrics and re-prepare the source.
- Specified by:
init
in interface BaseSource
- Overrides:
init
in class BaseSourceImpl
updateReplayTime
public void updateReplayTime(long time)
- Description copied from interface:
MetricsEditsReplaySource
- Add the time a replay command took
- Specified by:
updateReplayTime
in interface MetricsEditsReplaySource
updateReplayBatchSize
public void updateReplayBatchSize(long size)
- Description copied from interface:
MetricsEditsReplaySource
- Add the batch size of each replay
- Specified by:
updateReplayBatchSize
in interface MetricsEditsReplaySource
updateReplayDataSize
public void updateReplayDataSize(long size)
- Description copied from interface:
MetricsEditsReplaySource
- Add the payload data size of each replay
- Specified by:
updateReplayDataSize
in interface MetricsEditsReplaySource
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.