@InterfaceAudience.Private public class MetricsSnapshotSourceImpl extends BaseSourceImpl implements MetricsSnapshotSource
| Modifier and Type | Field and Description |
|---|---|
private MetricHistogram |
snapshotCloneTimeHisto |
private MetricHistogram |
snapshotRestoreTimeHisto |
private MetricHistogram |
snapshotTimeHisto |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryMETRICS_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_NAMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsSnapshotSourceImpl() |
MetricsSnapshotSourceImpl(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 |
updateSnapshotCloneTime(long time) |
void |
updateSnapshotRestoreTime(long time) |
void |
updateSnapshotTime(long time) |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogramprivate MetricHistogram snapshotTimeHisto
private MetricHistogram snapshotCloneTimeHisto
private MetricHistogram snapshotRestoreTimeHisto
public MetricsSnapshotSourceImpl()
public MetricsSnapshotSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void init()
BaseSourceinit in interface BaseSourceinit in class BaseSourceImplpublic void updateSnapshotTime(long time)
updateSnapshotTime in interface MetricsSnapshotSourcepublic void updateSnapshotCloneTime(long time)
updateSnapshotCloneTime in interface MetricsSnapshotSourcepublic void updateSnapshotRestoreTime(long time)
updateSnapshotRestoreTime in interface MetricsSnapshotSourceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.