it.sauronsoftware.cron4j
Interface SchedulerListener


public interface SchedulerListener

Implement this interface and register your instance with the Scheduler.addSchedulerListener(SchedulerListener) method to receive notifications about scheduled task executions.

Since:
2.0
Author:
Carlo Pelliccia

Method Summary
 void taskFailed(TaskExecutor executor, java.lang.Throwable exception)
          This one is called by the scheduler to notify that a task execution has failed.
 void taskLaunching(TaskExecutor executor)
          This one is called by the scheduler when a task execution is starting.
 void taskSucceeded(TaskExecutor executor)
          This one is called by the scheduler to notify that a task execution has been successfully completed.
 

Method Detail

taskLaunching

void taskLaunching(TaskExecutor executor)
This one is called by the scheduler when a task execution is starting.

Parameters:
executor - The task executor.

taskSucceeded

void taskSucceeded(TaskExecutor executor)
This one is called by the scheduler to notify that a task execution has been successfully completed.

Parameters:
executor - The task executor.

taskFailed

void taskFailed(TaskExecutor executor,
                java.lang.Throwable exception)
This one is called by the scheduler to notify that a task execution has failed.

Parameters:
executor - The task executor.
exception - The exception representing the failure notification.