com.myJava.util.schedule
Class ScheduledTask

java.lang.Object
  extended by com.myJava.util.schedule.ScheduledTask
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
LogCleaner, MemoryLogger, TemporaryDirectoryCleaner

public abstract class ScheduledTask
extends java.lang.Object
implements java.lang.Runnable


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  long tskDelay
          Delai (secondes).
protected  java.util.GregorianCalendar tskLastExecutionDate
           
protected  boolean tskShallStop
           
protected  java.lang.Thread tskThread
           
 
Constructor Summary
ScheduledTask(long delay)
          Constructeur.
 
Method Summary
 boolean evaluateCondition()
          M�thode d�terminant si la t�che doit �tre ex�cut�e ou non
 void execute()
          M�thode ex�cut�e lors de l'appel � la t�che.
 boolean isRunning()
          Indique si la t�che fonctionne
 void pauseThread()
          M�thode mettant le thread courant en pause
 void run()
           
 void startTask()
          D�marre la t�che
 void stopTask()
          Arr�te la t�che
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tskLastExecutionDate

protected java.util.GregorianCalendar tskLastExecutionDate

tskDelay

protected long tskDelay
Delai (secondes). Il s'agit du delai de test de "evaluateCondition"


tskThread

protected java.lang.Thread tskThread

tskShallStop

protected boolean tskShallStop
Constructor Detail

ScheduledTask

public ScheduledTask(long delay)
Constructeur. Le delai est specifie en secondes.

Method Detail

execute

public void execute()
M�thode ex�cut�e lors de l'appel � la t�che.


evaluateCondition

public boolean evaluateCondition()
M�thode d�terminant si la t�che doit �tre ex�cut�e ou non


startTask

public void startTask()
D�marre la t�che


isRunning

public boolean isRunning()
Indique si la t�che fonctionne


stopTask

public void stopTask()
Arr�te la t�che


pauseThread

public void pauseThread()
M�thode mettant le thread courant en pause


run

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