abstract static class StochasticLoadBalancer.CostFromRegionLoadFunction extends StochasticLoadBalancer.CostFunction
Modifier and Type | Field and Description |
---|---|
private ClusterStatus |
clusterStatus |
private Map<String,Deque<RegionLoad>> |
loads |
private double[] |
stats |
cluster
Constructor and Description |
---|
StochasticLoadBalancer.CostFromRegionLoadFunction(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(package private) double |
cost() |
protected abstract double |
getCostFromRl(RegionLoad rl) |
protected double |
getRegionLoadCost(Collection<RegionLoad> regionLoadList) |
(package private) void |
setClusterStatus(ClusterStatus status) |
(package private) void |
setLoads(Map<String,Deque<RegionLoad>> l) |
costFromArray, getMultiplier, init, postAction, regionMoved, scale, setMultiplier
private ClusterStatus clusterStatus
private Map<String,Deque<RegionLoad>> loads
private double[] stats
StochasticLoadBalancer.CostFromRegionLoadFunction(org.apache.hadoop.conf.Configuration conf)
void setClusterStatus(ClusterStatus status)
void setLoads(Map<String,Deque<RegionLoad>> l)
double cost()
cost
in class StochasticLoadBalancer.CostFunction
protected double getRegionLoadCost(Collection<RegionLoad> regionLoadList)
protected abstract double getCostFromRl(RegionLoad rl)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.