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