Class TestBalancerRejection.MockCostFunction

java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestBalancerRejection.MockCostFunction
Enclosing class:
TestBalancerRejection

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.hadoop.hbase.master.balancer.BalancerClusterState
     
    static final double
     
    static double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockCostFunction(org.apache.hadoop.conf.Configuration c)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
     
    (package private) float
     
    (package private) boolean
     
    (package private) void
    postAction(org.apache.hadoop.hbase.master.balancer.BalanceAction arg0)
     
    (package private) void
    prepare(org.apache.hadoop.hbase.master.balancer.BalancerClusterState arg0)
     
    protected void
    regionMoved(int arg0, int arg1, int arg2)
     
    protected static double
    scale(double arg0, double arg1, double arg2)
     
    (package private) void
    setMultiplier(float arg0)
     
    void
    updateWeight(double[] arg0)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mockCost

      public static double mockCost
    • COST_EPSILON

      public static final double COST_EPSILON
      See Also:
    • cluster

      protected org.apache.hadoop.hbase.master.balancer.BalancerClusterState cluster
  • Constructor Details

    • MockCostFunction

      public MockCostFunction(org.apache.hadoop.conf.Configuration c)
  • Method Details

    • cost

      protected double cost()
    • getMultiplier

      float getMultiplier()
    • isNeeded

      boolean isNeeded()
    • setMultiplier

      void setMultiplier(float arg0)
    • prepare

      void prepare(org.apache.hadoop.hbase.master.balancer.BalancerClusterState arg0)
    • postAction

      void postAction(org.apache.hadoop.hbase.master.balancer.BalanceAction arg0)
    • regionMoved

      protected void regionMoved(int arg0, int arg1, int arg2)
    • scale

      protected static double scale(double arg0, double arg1, double arg2)
    • updateWeight

      public void updateWeight(double[] arg0)