org.apache.hadoop.hbase.regionserver.wal
Class MetricsEditsReplaySourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.regionserver.wal.MetricsEditsReplaySourceImpl
All Implemented Interfaces:
BaseSource, MetricsEditsReplaySource, org.apache.hadoop.metrics2.MetricsSource

@InterfaceAudience.Private
public class MetricsEditsReplaySourceImpl
extends BaseSourceImpl
implements MetricsEditsReplaySource

Hadoop1 implementation of MetricsMasterSource. Implements BaseSource through BaseSourceImpl, following the pattern


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
Fields inherited from interface org.apache.hadoop.hbase.regionserver.wal.MetricsEditsReplaySource
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
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Constructor Summary
MetricsEditsReplaySourceImpl()
           
MetricsEditsReplaySourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
           
 
Method Summary
 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
 
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
 

Constructor Detail

MetricsEditsReplaySourceImpl

public MetricsEditsReplaySourceImpl()

MetricsEditsReplaySourceImpl

public MetricsEditsReplaySourceImpl(String metricsName,
                                    String metricsDescription,
                                    String metricsContext,
                                    String metricsJmxContext)
Method Detail

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 © 2015 The Apache Software Foundation. All rights reserved.