@InterfaceAudience.Private class RegionReplicaRackCostFunction extends RegionReplicaGroupingCostFunction
| Modifier and Type | Field and Description |
|---|---|
private static float |
DEFAULT_REGION_REPLICA_RACK_COST_KEY |
private static String |
REGION_REPLICA_RACK_COST_KEY |
costsPerGroup, maxCostcluster, COST_EPSILON| Constructor and Description |
|---|
RegionReplicaRackCostFunction(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
loadCosts() |
protected void |
regionMoved(int region,
int oldServer,
int newServer) |
cost, costPerGroup, getMaxCost, isNeeded, prepare, updateWeightgetMultiplier, postAction, scale, setMultiplierprivate static final String REGION_REPLICA_RACK_COST_KEY
private static final float DEFAULT_REGION_REPLICA_RACK_COST_KEY
public RegionReplicaRackCostFunction(org.apache.hadoop.conf.Configuration conf)
protected void loadCosts()
loadCosts in class RegionReplicaGroupingCostFunctionprotected void regionMoved(int region, int oldServer, int newServer)
regionMoved in class CostFunctionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.