|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.amsterdam.cron.CronJob
Represents a Job/Task to be run by a CronManager.
A CronJob takes a string describing when it is to be run. The string hase the same format as the date and time fields in a Unix/Vixie Crontab entry. It also takes a ContentMapEntry. This is an opaque object that may be accessed in the listener that is called when the CronManager "executes" the job.
The sceduleAt string follows the syntax of a cronlike Date/Timestring
String: minute hour day-of-month month day-of-week
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (no names)
day of week 1-7 (1 is Sun)
Currently ranges are not alowed, only skips, ie 0-12 is not allowed, but *\/5 wich for minutes means every fifth minute.
Some examples:
Run every minute: * * * * *.
Run every fith minute: *\/5 * * * *.
Run at three a clock every day: 0 3 * * *.
Run at three a clock every monday: 0 3 * * 2.
| Constructor Summary | |
CronJob(java.lang.String scheduleAt,
ContentMapEntry contentEntry)
|
|
| Method Summary | |
java.lang.String |
getContentAsXML(boolean prettyPrint)
|
ContentMapEntry |
getContentEntry()
|
java.lang.String |
getCronDateTime()
|
void |
setContentEntry(ContentMapEntry contentEntry)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CronJob(java.lang.String scheduleAt,
ContentMapEntry contentEntry)
| Method Detail |
public java.lang.String getCronDateTime()
public ContentMapEntry getContentEntry()
public void setContentEntry(ContentMapEntry contentEntry)
public java.lang.String toString()
public java.lang.String getContentAsXML(boolean prettyPrint)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||