@InterfaceAudience.Private public class MetricsMasterProcSourceImpl extends BaseSourceImpl implements MetricsMasterProcSource
Modifier and Type | Field and Description |
---|---|
private MetricsMasterWrapper |
masterWrapper |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_MASTER_WALS_DESC, NUM_MASTER_WALS_NAME
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsMasterProcSourceImpl(MetricsMasterWrapper masterWrapper) |
MetricsMasterProcSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext,
MetricsMasterWrapper masterWrapper) |
Modifier and Type | Method and Description |
---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
init()
Clear out the metrics and re-prepare the source.
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
private final MetricsMasterWrapper masterWrapper
public MetricsMasterProcSourceImpl(MetricsMasterWrapper masterWrapper)
public MetricsMasterProcSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsMasterWrapper masterWrapper)
public void init()
BaseSource
init
in interface BaseSource
init
in class BaseSourceImpl
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.