com.jcorporate.expresso.services.crontab
Class CronDaemon
java.lang.Object
com.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
|
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 |
mgr
protected Crontab mgr
thread
protected Thread thread
CronDaemon
public CronDaemon(Crontab mgr,
boolean isDaemon,
String waiterName)
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
Please see www.jcorporate.com for information about new Expresso releases.