|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
fr.dyade.aaa.common.AverageLoadTask
public abstract class AverageLoadTask
This class computes the load average of the server using Unix algorithm. This task needs is scheduled every 5 seconds.
Constructor Summary | |
---|---|
AverageLoadTask()
|
Method Summary | |
---|---|
protected abstract long |
countActiveTasks()
|
float |
getAverageLoad1()
Returns the load averages for the last minute. |
float |
getAverageLoad15()
Returns the load averages for the past 15 minutes. |
float |
getAverageLoad5()
Returns the load averages for the past 5 minutes. |
void |
run()
|
protected void |
start(java.util.Timer timer)
Starts the resulting task. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AverageLoadTask()
Method Detail |
---|
public float getAverageLoad1()
public float getAverageLoad5()
public float getAverageLoad15()
protected abstract long countActiveTasks()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
TimerTask.run()
protected final void start(java.util.Timer timer)
timer
- Timer to use to schedule the resulting task.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |