static class StochasticLoadBalancer.MoveCostFunction extends StochasticLoadBalancer.CostFunction
Modifier and Type | Field and Description |
---|---|
private static float |
DEFAULT_MAX_MOVE_PERCENT |
private static int |
DEFAULT_MAX_MOVES |
private static float |
DEFAULT_MOVE_COST |
private static String |
MAX_MOVES_PERCENT_KEY |
private float |
maxMovesPercent |
private static String |
MOVE_COST_KEY |
cluster
Constructor and Description |
---|
StochasticLoadBalancer.MoveCostFunction(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(package private) double |
cost() |
costFromArray, getMultiplier, init, postAction, regionMoved, scale, setMultiplier
private static final String MOVE_COST_KEY
private static final String MAX_MOVES_PERCENT_KEY
private static final float DEFAULT_MOVE_COST
private static final int DEFAULT_MAX_MOVES
private static final float DEFAULT_MAX_MOVE_PERCENT
private final float maxMovesPercent
StochasticLoadBalancer.MoveCostFunction(org.apache.hadoop.conf.Configuration conf)
double cost()
cost
in class StochasticLoadBalancer.CostFunction
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.