Java Code Examples for org.quartz.SchedulerListener#jobPaused()

The following examples show how to use org.quartz.SchedulerListener#jobPaused() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BroadcastSchedulerListener.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public void jobPaused(JobKey key) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobPaused(key);
    }
}
 
Example 2
Source File: QuartzScheduler.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public void notifySchedulerListenersPausedJob(JobKey key) {
    // build a list of all scheduler listeners that are to be notified...
    List<SchedulerListener> schedListeners = buildSchedulerListenerList();

    // notify all scheduler listeners
    for(SchedulerListener sl: schedListeners) {
        try {
            sl.jobPaused(key);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of paused job: "
                            + key, e);
        }
    }
}