Expresso 5-6

com.jcorporate.expresso.services.crontab
Class CronDaemon

java.lang.Object
  extended bycom.jcorporate.expresso.services.crontab.CronDaemon
All Implemented Interfaces:
Runnable

public class CronDaemon
extends Object
implements Runnable

This class provides the thread for listening on various crontabs. It notifies the crontab when it's time to notify a listener.

Version:
1.0
Author:
Mike Dubman

Field Summary
protected  Crontab mgr
           
protected  Thread thread
           
 
Constructor Summary
CronDaemon(Crontab mgr, boolean isDaemon, String waiterName)
           
 
Method Summary
 void restart(long sleepUntil)
          Restarts the cron daemon
 void run()
           
 void stop()
          Stops the thread
 void update(long sleepUntil)
          Updates the time it should sleep until
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mgr

protected Crontab mgr

thread

protected Thread thread
Constructor Detail

CronDaemon

public CronDaemon(Crontab mgr,
                  boolean isDaemon,
                  String waiterName)
Method Detail

update

public void update(long sleepUntil)
Updates the time it should sleep until

Parameters:
sleepUntil - absolute system time to sleep until

restart

public void restart(long sleepUntil)
Restarts the cron daemon

Parameters:
sleepUntil - the absolute time to sleep until

stop

public void stop()
Stops the thread


run

public void run()
Specified by:
run in interface Runnable

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.