org.apache.hadoop.hbase.master.balancer
Class MetricsBalancerSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.master.balancer.MetricsBalancerSourceImpl
All Implemented Interfaces:
MetricsBalancerSource, BaseSource, org.apache.hadoop.metrics2.MetricsSource

public class MetricsBalancerSourceImpl
extends BaseSourceImpl
implements MetricsBalancerSource


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
Fields inherited from interface org.apache.hadoop.hbase.master.balancer.MetricsBalancerSource
BALANCE_CLUSTER, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MISC_INVOATION_COUNT
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Constructor Summary
MetricsBalancerSourceImpl()
           
MetricsBalancerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
           
 
Method Summary
 void incrMiscInvocations()
           
 void init()
          Clear out the metrics and re-prepare the source.
 void updateBalanceCluster(long time)
           
 
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
 
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, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
 

Constructor Detail

MetricsBalancerSourceImpl

public MetricsBalancerSourceImpl()

MetricsBalancerSourceImpl

public MetricsBalancerSourceImpl(String metricsName,
                                 String metricsDescription,
                                 String metricsContext,
                                 String metricsJmxContext)
Method Detail

init

public void init()
Description copied from interface: BaseSource
Clear out the metrics and re-prepare the source.

Specified by:
init in interface BaseSource
Overrides:
init in class BaseSourceImpl

updateBalanceCluster

public void updateBalanceCluster(long time)
Specified by:
updateBalanceCluster in interface MetricsBalancerSource

incrMiscInvocations

public void incrMiscInvocations()
Specified by:
incrMiscInvocations in interface MetricsBalancerSource


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.