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