scheduling:retry

Description

This is a timer that runs it's job according to the schedule until the schedule expires or the job completes successfully.

Properties

NameDescriptionRequired
name A name, can be any text. No.
schedule The Schedule used to provide execution times. Yes.
timeZone The time zone the schedule is to run in. This is the text id of the time zone, such as "Europe/London". More information can be found at TimeZone. Set automatically.
clock The clock to use. Tells the current time. Set automatically.
current This is the current/next interval from the schedule. Set automatically.
reschedule Reschedule from the given date/time. Only available when running.

Elements

job

Required: Yes.

The job to run when it's due.

Example

 <scheduling:retry xmlns:scheduling="http://rgordon.co.uk/oddjob/scheduling"
                 xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"
                 name="File Polling Example">
   <schedule>
       <schedules:interval interval="00:00:05"/>
   </schedule>
   <job>
       <sequential>
           <jobs>
               <exists id="check"
                       file="work/*.foo"/>
               <echo text="Found ${check.exists[0]}"/>
           </jobs>
       </sequential>
   </job>
 </scheduling:retry>
 


(c) Rob Gordon 2005 - 2009