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

The following examples show how to use org.quartz.SchedulerListener#jobUnscheduled() . 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 lams with GNU General Public License v2.0 6 votes vote down vote up
public void notifySchedulerListenersUnscheduled(TriggerKey triggerKey) {
    // 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 {
            if(triggerKey == null)
                sl.schedulingDataCleared();
            else
                sl.jobUnscheduled(triggerKey);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of unscheduled job."
                            + "  Triger=" + (triggerKey == null ? "ALL DATA" : triggerKey), e);
        }
    }
}
 
Example 2
Source File: QuartzScheduler.java    From AsuraFramework with Apache License 2.0 6 votes vote down vote up
public void notifySchedulerListenersUnscheduled(String triggerName,
        String triggerGroup) {
    // build a list of all scheduler 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.jobUnscheduled(triggerName, triggerGroup);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of unscheduled job."
                            + "  Triger=" + triggerGroup + "."
                            + triggerName, e);
        }
    }
}
 
Example 3
Source File: BroadcastSchedulerListener.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public void jobUnscheduled(TriggerKey triggerKey) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobUnscheduled(triggerKey);
    }
}
 
Example 4
Source File: BroadcastSchedulerListener.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
public void jobUnscheduled(String triggerName, String triggerGroup) {
    Iterator itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = (SchedulerListener) itr.next();
        l.jobUnscheduled(triggerName, triggerGroup);
    }
}