org.objectweb.proactive.loadbalancing.metrics.CPURanking
Class LinuxCPURanking

java.lang.Object
  extended by org.objectweb.proactive.loadbalancing.metrics.CPURanking.LinuxCPURanking
All Implemented Interfaces:
Metric

public class LinuxCPURanking
extends java.lang.Object
implements Metric


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

LinuxCPURanking

public LinuxCPURanking()
This method returns sets the machine ranking, in our implementation is the CPU clock

Method Detail

setRanking

public void setRanking(double x)

addToRanking

public void addToRanking(double x)

getRanking

public double getRanking()
This method returns if the machine ranking

Specified by:
getRanking in interface Metric

takeDecision

public void takeDecision(LoadBalancer lb)
Description copied from interface: Metric
This method has to call the methods : - stealWork or - startBalancing according to the load

Specified by:
takeDecision in interface Metric
Parameters:
lb - the LoadBalancer

getLoad

public double getLoad()
Specified by:
getLoad in interface Metric


Copyright 2001-2007 INRIA All Rights Reserved.