Hello, For some time in 'speeltuin' (speeltuin/keesj/crontab) we find the 'crontab' functionality. We want to offer it as a 'hack' for inclusion in the 'applicitions' CVS module. It will then become available for download on mmbase.org.
The crontab functionality is of course heavily inspired by UNIX' crontab. This means that you can schedule jobs with it. You specify when it must run by a string like: "*/3 5-23 * * *" which means every three minutes, but not during the night, or "0 7 * * *" which means every day at 7 am. You specify what must be run by the class-name of a class implementing 'Runnable', or optionally, implementing the specialized interface CronJob. The CronJob interface extends Runnable but also alows for code to be run when the con-daemon stops or when it starts (a String can be provided for configuration). In combination with the new 'ClassSecurity' feature you can easily implement CronJobs using the bridge interfaces. There are two ways to configure which cronjobs are present in the CronDaemon. You can install a specialized builder (cronjobs). Every object of this builder represents a cron-job. The other way is to use the 'crontab' module (with a crontab.xml), of which every propery represents a cronjob. This module XML is watched, so you can dynamicly add or change cronjobs. Both ways can be used simultaneously. Example configuration and implementation can -as said- be found in speeltuin. One of the examples is a MMBase cache and memory watcher, which you can use to schedule logging of cache and memory fill-rates, which might be interesting. We offer it for CVS HEAD, but we can provide a 1.7 build too (it depends on ReloadableModule which is not present in 1.7 itself, but can simply be included in mmbase-crontab.jar itself). This vote is offered by Kees Jongenburger and Michiel Meeuwissen, and we also volunteer to maintain the code afterwards. START OF CALL: 2004-09-30 12:00 END OF CALL: 2004-10-05 12:00 [_] +1 (YES) [_] +0 (ABSTAIN ) [_] -1 (NO), because : [_] VETO, because: -- Michiel Meeuwissen mihxil' Mediacentrum 140 H'sum [] () +31 (0)35 6772979 nl_NL eo_XX en_US
