|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.loadbalancing.metrics.CPURanking.LinuxCPURanking
public class LinuxCPURanking
Constructor Summary | |
---|---|
LinuxCPURanking()
This method returns sets the machine ranking, in our implementation is the CPU clock |
Method Summary | |
---|---|
void |
addToRanking(double x)
|
double |
getLoad()
|
double |
getRanking()
This method returns if the machine ranking |
void |
setRanking(double x)
|
void |
takeDecision(LoadBalancer lb)
This method has to call the methods : - stealWork or - startBalancing according to the load |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinuxCPURanking()
Method Detail |
---|
public void setRanking(double x)
public void addToRanking(double x)
public double getRanking()
getRanking
in interface Metric
public void takeDecision(LoadBalancer lb)
Metric
takeDecision
in interface Metric
lb
- the LoadBalancerpublic double getLoad()
getLoad
in interface Metric
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |