|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.applications.crontab.AbstractCronJob
public abstract class AbstractCronJob
A straight-forward abstract implementation of CronJob. If you exend it, you only need to implement run(), and the 'cronEntry' protected member var is available.
| Field Summary | |
|---|---|
protected CronEntry |
cronEntry
|
| Constructor Summary | |
|---|---|
AbstractCronJob()
|
|
| Method Summary | |
|---|---|
CronEntry |
getEntry()
|
protected void |
init()
You can init by overriding this (no need to call super.init) This is called by init(CronEntry) |
void |
init(CronEntry cronEntry)
If the CronJobs needs some initializing before the first run, then that can be put in this. |
abstract void |
run()
Implement this. |
void |
stop()
Empty implementation (probably that's what you want) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CronEntry cronEntry
| Constructor Detail |
|---|
public AbstractCronJob()
| Method Detail |
|---|
public final void init(CronEntry cronEntry)
init() instead (in which they can use the cronEntry member).
init in interface CronJobprotected void init()
init(CronEntry)
public void stop()
stop in interface CronJobpublic final CronEntry getEntry()
getEntry in interface CronJobpublic abstract void run()
run in interface Runnablerun in interface CronJob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||