static class StochasticLoadBalancer.RackLocalityCostFunction extends StochasticLoadBalancer.LocalityBasedCostFunction
| Modifier and Type | Field and Description | 
|---|---|
private static float | 
DEFAULT_RACK_LOCALITY_COST  | 
private static String | 
RACK_LOCALITY_COST_KEY  | 
cluster| Constructor and Description | 
|---|
RackLocalityCostFunction(org.apache.hadoop.conf.Configuration conf,
                        MasterServices services)  | 
| Modifier and Type | Method and Description | 
|---|---|
(package private) int | 
regionIndexToEntityIndex(int region)
Maps region to the current entity (server or rack) on which it is stored 
 | 
cost, init, regionMoved, setServicescostFromArray, getMultiplier, isNeeded, postAction, scale, setMultiplierprivate static final String RACK_LOCALITY_COST_KEY
private static final float DEFAULT_RACK_LOCALITY_COST
public RackLocalityCostFunction(org.apache.hadoop.conf.Configuration conf, MasterServices services)
int regionIndexToEntityIndex(int region)
StochasticLoadBalancer.LocalityBasedCostFunctionregionIndexToEntityIndex in class StochasticLoadBalancer.LocalityBasedCostFunctionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.