Package org.apache.hadoop.hbase.master
Class MetricsSnapshotSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.master.MetricsSnapshotSourceImpl
- All Implemented Interfaces:
MetricsSnapshotSource,BaseSource,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsSnapshotSourceImpl
extends BaseSourceImpl
implements MetricsSnapshotSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramFields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionMetricsSnapshotSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Clear out the metrics and re-prepare the source.voidupdateSnapshotCloneTime(long time) voidupdateSnapshotRestoreTime(long time) voidupdateSnapshotTime(long time) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
-
Field Details
-
snapshotTimeHisto
-
snapshotCloneTimeHisto
-
snapshotRestoreTimeHisto
-
-
Constructor Details
-
MetricsSnapshotSourceImpl
public MetricsSnapshotSourceImpl() -
MetricsSnapshotSourceImpl
public MetricsSnapshotSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
init
Description copied from interface:BaseSourceClear out the metrics and re-prepare the source.- Specified by:
initin interfaceBaseSource- Overrides:
initin classBaseSourceImpl
-
updateSnapshotTime
- Specified by:
updateSnapshotTimein interfaceMetricsSnapshotSource
-
updateSnapshotCloneTime
- Specified by:
updateSnapshotCloneTimein interfaceMetricsSnapshotSource
-
updateSnapshotRestoreTime
- Specified by:
updateSnapshotRestoreTimein interfaceMetricsSnapshotSource
-