org.mmbase.applications.crontab
Interface CronJob

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractCronJob, 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,v 1.2 2006/01/20 08:19:10 michiel Exp $
Author:
Kees Jongenburger, Michiel Meeuwissen

Method Summary
 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

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


stop

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


run

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

Specified by:
run in interface Runnable


MMBase build 1.8.1.20060716