org.apache.hadoop.hbase.master
Class MetricsSnapshotSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.master.MetricsSnapshotSourceImpl
All Implemented Interfaces:
MetricsSnapshotSource, BaseSource, org.apache.hadoop.metrics2.MetricsSource

@InterfaceAudience.Private
public class MetricsSnapshotSourceImpl
extends BaseSourceImpl
implements MetricsSnapshotSource


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.master.MetricsSnapshotSource
METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, SNAPSHOT_CLONE_TIME_DESC, SNAPSHOT_CLONE_TIME_NAME, SNAPSHOT_RESTORE_TIME_DESC, SNAPSHOT_RESTORE_TIME_NAME, SNAPSHOT_TIME_DESC, SNAPSHOT_TIME_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Constructor Summary
MetricsSnapshotSourceImpl()
           
MetricsSnapshotSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
           
 
Method Summary
 void init()
          Clear out the metrics and re-prepare the source.
 void updateSnapshotCloneTime(long time)
           
 void updateSnapshotRestoreTime(long time)
           
 void updateSnapshotTime(long time)
           
 
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

MetricsSnapshotSourceImpl

public MetricsSnapshotSourceImpl()

MetricsSnapshotSourceImpl

public MetricsSnapshotSourceImpl(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

updateSnapshotTime

public void updateSnapshotTime(long time)
Specified by:
updateSnapshotTime in interface MetricsSnapshotSource

updateSnapshotCloneTime

public void updateSnapshotCloneTime(long time)
Specified by:
updateSnapshotCloneTime in interface MetricsSnapshotSource

updateSnapshotRestoreTime

public void updateSnapshotRestoreTime(long time)
Specified by:
updateSnapshotRestoreTime in interface MetricsSnapshotSource


Copyright © 2015 The Apache Software Foundation. All rights reserved.