static class StochasticLoadBalancer.LocalityCostFunction extends StochasticLoadBalancer.CostFunction
StoreFile
s are located.Modifier and Type | Field and Description |
---|---|
private static float |
DEFAULT_LOCALITY_COST |
private static String |
LOCALITY_COST_KEY |
private MasterServices |
services |
cluster
Constructor and Description |
---|
StochasticLoadBalancer.LocalityCostFunction(org.apache.hadoop.conf.Configuration conf,
MasterServices srv) |
Modifier and Type | Method and Description |
---|---|
(package private) double |
cost() |
(package private) void |
setServices(MasterServices srvc) |
costFromArray, getMultiplier, init, postAction, regionMoved, scale, setMultiplier
private static final String LOCALITY_COST_KEY
private static final float DEFAULT_LOCALITY_COST
private MasterServices services
StochasticLoadBalancer.LocalityCostFunction(org.apache.hadoop.conf.Configuration conf, MasterServices srv)
void setServices(MasterServices srvc)
double cost()
cost
in class StochasticLoadBalancer.CostFunction
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.