Class DummyMetricsStochasticBalancer

java.lang.Object
org.apache.hadoop.hbase.master.balancer.MetricsBalancer
org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
org.apache.hadoop.hbase.master.balancer.DummyMetricsStochasticBalancer

public class DummyMetricsStochasticBalancer extends org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
  • Field Details

  • Constructor Details

  • Method Details

    • initSource

      protected void initSource()
      Overrides:
      initSource in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
    • balanceCluster

      public void balanceCluster(long time)
      Overrides:
      balanceCluster in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
    • incrMiscInvocations

      public void incrMiscInvocations()
      Overrides:
      incrMiscInvocations in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
    • balancerStatus

      public void balancerStatus(boolean status)
      Overrides:
      balancerStatus in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
    • updateMetricsSize

      public void updateMetricsSize(int size)
      Overrides:
      updateMetricsSize in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
    • updateStochasticCost

      public void updateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value)
      Overrides:
      updateStochasticCost in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
    • getDummyCostsMap

    • clearDummyMetrics

      public void clearDummyMetrics()
      Clear all metrics in the cache map then prepare to run the next test