Class TestBalancerRejection.MockCostFunction
java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestBalancerRejection.MockCostFunction
- Enclosing class:
- TestBalancerRejection
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.master.balancer.BalancerClusterState
static final double
static double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
cost()
(package private) float
(package private) boolean
isNeeded()
(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)
-
Field Details
-
mockCost
-
COST_EPSILON
public static final double COST_EPSILON- See Also:
-
cluster
protected org.apache.hadoop.hbase.master.balancer.BalancerClusterState cluster
-
-
Constructor Details
-
MockCostFunction
-
-
Method Details
-
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)
-