static class TestBalancerRejection.MockCostFunction extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.master.balancer.BalancerClusterState |
cluster |
static double |
COST_EPSILON |
static double |
mockCost |
Constructor and Description |
---|
MockCostFunction(org.apache.hadoop.conf.Configuration c) |
Modifier and Type | Method and Description |
---|---|
protected double |
cost() |
(package private) float |
getMultiplier() |
(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) |
public static double mockCost
public static final double COST_EPSILON
protected org.apache.hadoop.hbase.master.balancer.BalancerClusterState cluster
public MockCostFunction(org.apache.hadoop.conf.Configuration c)
protected double cost()
float getMultiplier()
boolean isNeeded()
void setMultiplier(float arg0)
void prepare(org.apache.hadoop.hbase.master.balancer.BalancerClusterState arg0)
void postAction(org.apache.hadoop.hbase.master.balancer.BalanceAction arg0)
protected void regionMoved(int arg0, int arg1, int arg2)
protected static double scale(double arg0, double arg1, double arg2)
public void updateWeight(double[] arg0)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.