archiveIdentifier | The identifier of the snapshot that will be taken when this job runs. |
archiveName | The name of the archive that all snapshots will be stored in. |
archiver | The persister to use to store archives. |
job | The child job. |
name | A name, can be any text. |
Example 1 | Create an archive after each scheduled run. |
Configured By | ELEMENT |
Access | READ_WRITE |
Required | Yes. |
The identifier of the snapshot that will be taken when this job runs.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | Yes. |
The name of the archive that all snapshots will be stored in.
Configured By | ELEMENT |
Access | READ_WRITE |
Required | Yes, but will fall back on the current Oddjob persister. |
The persister to use to store archives.
Configured By | ELEMENT |
Access | WRITE_ONLY |
Required | No, but pointless if missing. |
The child job.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
A name, can be any text.
Create an archive after each scheduled run. The time of the schedule is used to identify the archive.
<oddjob id="this"> <job> <sequential> <jobs> <scheduling:timer id="the-timer" xmlns:scheduling="http://rgordon.co.uk/oddjob/scheduling"> <clock> <value value="${clock}"/> </clock> <schedule> <schedules:count count="3" xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"> <refinement> <schedules:interval interval="00:00:00.100"/> </refinement> </schedules:count> </schedule> <job> <archive archiveName="Batch_01"> <archiver> <file-persister dir="${this.args[0]}"/> </archiver> <archiveIdentifier> <format date="${the-timer.current.fromDate}" format="mm_ss_SSS"/> </archiveIdentifier> <job> <echo>Run at ${the-timer.current.fromDate}</echo> </job> </archive> </job> </scheduling:timer> </jobs> </sequential> </job> </oddjob>