scheduling:timer

Description

Provides a simple timer for periodic or once only execution of the child job.

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.
lastComplete The interval in the normal schedule in which the scheduled job last completed. This is the interval that will be used to determine when the next normal schedule is due. It can only be changed using the reSchedule property. Read only.
haltOnFailure Don't reschedule if the scheduled job doesn't complete. No.
skipMissedRuns Use the current time, not the last completed time to calculate when the job is next due. No.

Elements

job

Required: Yes.

The job to run when it's due.

Example

 <scheduling:timer xmlns:schedules="http://rgordon.co.uk/oddjob/scheduling"
                      xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"
                      id="timer">
   <schedule>
     <schedules:dayofweek from="Mon" to="Fri" >
      <refinement>
       <schedules:time from="10:00" to="17:00" />
      </refinement>
     </schedules:dayofweek>
   <schedule>
   <job>
     <echo text="Doing some work at ${timer.current.fromDate}"/>
   </retry>
 </scheduling:ojschedule>
 


(c) Rob Gordon 2005 - 2009