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

The following examples show how to use org.quartz.SchedulerListener#jobsResumed() . 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: QuartzScheduler.java    From AsuraFramework with Apache License 2.0 6 votes vote down vote up
public void notifySchedulerListenersResumedJob(String name, String group) {
    // build a list of all job listeners that are to be notified...
    List schedListeners = getSchedulerListeners();

    // notify all scheduler listeners
    java.util.Iterator itr = schedListeners.iterator();
    while (itr.hasNext()) {
        SchedulerListener sl = (SchedulerListener) itr.next();
        try {
            sl.jobsResumed(name, group);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of resumed job/group."
                            + "  Job=" + group + "." + name, e);
        }
    }
}
 
Example 2
Source File: BroadcastSchedulerListener.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public void jobsResumed(String jobGroup) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobsResumed(jobGroup);
    }
}
 
Example 3
Source File: QuartzScheduler.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public void notifySchedulerListenersResumedJobs(String group) {
    // 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.jobsResumed(group);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of resumed job group: "
                            + group, e);
        }
    }
}
 
Example 4
Source File: BroadcastSchedulerListener.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
public void jobsResumed(String jobName, String jobGroup) {
    Iterator itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = (SchedulerListener) itr.next();
        l.jobsResumed(jobName, jobGroup);
    }
}