Class MetricsBalancerSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.master.balancer.MetricsBalancerSourceImpl
- All Implemented Interfaces:
MetricsBalancerSource
,BaseSource
,org.apache.hadoop.metrics2.MetricsSource
- Direct Known Subclasses:
MetricsStochasticBalancerSourceImpl
@Private
public class MetricsBalancerSourceImpl
extends BaseSourceImpl
implements MetricsBalancerSource
-
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.balancer.MetricsBalancerSource
BALANCE_CLUSTER, BALANCER_STATUS, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MISC_INVOATION_COUNT
-
Constructor Summary
ConstructorDescriptionMetricsBalancerSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
init()
Clear out the metrics and re-prepare the source.void
updateBalanceCluster
(long time) void
updateBalancerStatus
(boolean status) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, 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
-
blanceClusterHisto
-
miscCount
-
-
Constructor Details
-
MetricsBalancerSourceImpl
public MetricsBalancerSourceImpl() -
MetricsBalancerSourceImpl
public MetricsBalancerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
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
-
updateBalanceCluster
- Specified by:
updateBalanceCluster
in interfaceMetricsBalancerSource
-
incrMiscInvocations
- Specified by:
incrMiscInvocations
in interfaceMetricsBalancerSource
-
updateBalancerStatus
- Specified by:
updateBalancerStatus
in interfaceMetricsBalancerSource
-