org.objectweb.proactive.loadbalancing
Class LoadMonitor

java.lang.Object
  extended by org.objectweb.proactive.loadbalancing.LoadMonitor
All Implemented Interfaces:
java.lang.Runnable, ProActiveInternalObject

public class LoadMonitor
extends java.lang.Object
implements java.lang.Runnable, ProActiveInternalObject

This is the main class for Load Monitors, particular implementations of monitors should inherite from it. Like all monitors, it will create a thread which calculates the load, sending it to the load balancer, and sleeping for a a while. To minimize reaction time against overloading, this implementation will reduce the sleeping time while the load is increasing, supposing load index between 0 and 1. This class provides the monitor behaviour, the load calculus has to be provided.

Author:
Javier.Bustos@sophia.inria.fr

Field Summary
protected  LoadBalancer lb
           
protected  Metric metric
           
 
Constructor Summary
LoadMonitor(LoadBalancer lb, Metric metric)
           
 
Method Summary
 void killMePlease()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lb

protected LoadBalancer lb

metric

protected Metric metric
Constructor Detail

LoadMonitor

public LoadMonitor(LoadBalancer lb,
                   Metric metric)
Method Detail

killMePlease

public void killMePlease()

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright 2001-2007 INRIA All Rights Reserved.