org.oddjob.schedules
Interface ScheduleListener


public interface ScheduleListener


Method Summary
 void complete(Date scheduleDate, ScheduleResult lastComplete)
          Called when the job has completed successfully.
 void failed(Date scheduleDate)
          Retries (if they exist) are exhausted.
 void initialised(Date scheduleDate)
          Called when a ScheduleCalculator is first initialised.
 void retry(Date scheduleDate, Date retryDate)
          The job has failed an the retry schedule is in operation.
 

Method Detail

initialised

void initialised(Date scheduleDate)
Called when a ScheduleCalculator is first initialised.

Parameters:
scheduleDate - The date the schedule is first due.

complete

void complete(Date scheduleDate,
              ScheduleResult lastComplete)
Called when the job has completed successfully.

Parameters:
scheduleDate - The new schedule date.
lastComplete - The interval of the last schedule.

retry

void retry(Date scheduleDate,
           Date retryDate)
The job has failed an the retry schedule is in operation.

Parameters:
scheduleDate - The date when the job was due to be scheduled. This shouldn't have changed. Not sure why we need it here.
retryDate - When a retry is due according to the retry schedule.

failed

void failed(Date scheduleDate)
Retries (if they exist) are exhausted.

Parameters:
scheduleDate - When the job is next due according to the schedule or null if it's not.