@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, maxCost
cluster, 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, updateWeight
getMultiplier, postAction, scale, setMultiplier
private 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 RegionReplicaGroupingCostFunction
protected void regionMoved(int region, int oldServer, int newServer)
regionMoved
in class CostFunction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.