org.mmbase.applications.crontab
Interface CronJob

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractCronJob, FullIndex, MemoryWarner, MMBaseCacheClearerJob, MMBaseQueryJob, MMBaseStatsJob, PopFetcher, RunnableCronJob, SampleCronJob, TestCronJob

public interface CronJob
extends Runnable

CronJobs are simply 'Runnable' but also have a init-method, which is called by CronDaemon. It is wrapped a CronEntry first.

Version:
$Id: CronJob.java 42079 2010-05-03 09:06:58Z michiel $
Author:
Kees Jongenburger, Michiel Meeuwissen

Method Summary
 CronEntry getEntry()
           
 void init(CronEntry cronEntry)
          If the CronJobs needs some initializing before the first run, then that can be put in this.
 void run()
           This is the method which is repeatedly called.
 void stop()
          If after the last run of the job, there need to be shutdown things, then that can be done here.
 

Method Detail

init

void init(CronEntry cronEntry)
If the CronJobs needs some initializing before the first run, then that can be put in this.


stop

void stop()
If after the last run of the job, there need to be shutdown things, then that can be done here.


run

void run()
This is the method which is repeatedly called.

Specified by:
run in interface Runnable

getEntry

CronEntry getEntry()


MMBase 2.0-SNAPSHOT - null