public class WeightedAverageLoadCalc extends Object implements LoadCalculator
Constructor and Description |
---|
WeightedAverageLoadCalc(double loadOneWeight,
double loadFiveWeight,
double loadFifteenWeight)
Make a new WeightedAverageLoadCalc
LoadCalculator |
Modifier and Type | Method and Description |
---|---|
double |
calculateLoad(Map<String,String> nodeMetrics)
Calculate the load and normalize it within the given node's capacity
|
public WeightedAverageLoadCalc(double loadOneWeight, double loadFiveWeight, double loadFifteenWeight)
LoadCalculator
loadOneWeight
- weight for the load_oneloadFiveWeight
- weight for the load_fiveloadFifteenWeight
- weight for the load_fifteenpublic double calculateLoad(Map<String,String> nodeMetrics)
calculateLoad
in interface LoadCalculator
nodeMetrics
- status metrics of the resource nodeCopyright © 1999–2017 Apache OODT. All rights reserved.