Package org.apache.hadoop.hbase.master
Class MetricsMasterProcSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.master.MetricsMasterProcSourceImpl
- All Implemented Interfaces:
MetricsMasterProcSource
,BaseSource
,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsMasterProcSourceImpl
extends BaseSourceImpl
implements MetricsMasterProcSource
Hadoop2 implementation of MetricsMasterSource. Implements BaseSource through BaseSourceImpl,
following the pattern
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields inherited from interface org.apache.hadoop.hbase.master.MetricsMasterProcSource
METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_MASTER_WALS_DESC, NUM_MASTER_WALS_NAME
-
Constructor Summary
ConstructorDescriptionMetricsMasterProcSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsMasterWrapper masterWrapper) MetricsMasterProcSourceImpl
(MetricsMasterWrapper masterWrapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getMetrics
(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) void
init()
Clear out the metrics and re-prepare the source.Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
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, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
-
Field Details
-
masterWrapper
-
-
Constructor Details
-
MetricsMasterProcSourceImpl
-
MetricsMasterProcSourceImpl
public MetricsMasterProcSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsMasterWrapper masterWrapper)
-
-
Method Details
-
init
Description copied from interface:BaseSource
Clear out the metrics and re-prepare the source.- Specified by:
init
in interfaceBaseSource
- Overrides:
init
in classBaseSourceImpl
-
getMetrics
- Specified by:
getMetrics
in interfaceorg.apache.hadoop.metrics2.MetricsSource
- Overrides:
getMetrics
in classBaseSourceImpl
-