|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFunction
public abstract static class StochasticLoadBalancer.CostFunction
Base class of StochasticLoadBalancer's Cost Functions.
| Method Summary | |
|---|---|
protected double |
costFromArray(double[] stats)
Function to compute a scaled cost using DescriptiveStatistics. |
protected double |
scale(double min,
double max,
double value)
Scale the value between 0 and 1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected double costFromArray(double[] stats)
DescriptiveStatistics. It
assumes that this is a zero sum set of costs. It assumes that the worst case
possible is all of the elements in one region server and the rest having 0.
stats - the costs
protected double scale(double min,
double max,
double value)
min - Min valuemax - The Max valuevalue - The value to be scaled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||