Java 类org.quartz.SchedulerListener 实例源码

项目:lams    文件:QuartzScheduler.java   
public void notifySchedulerListenersError(String msg, SchedulerException se) {
    // 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.schedulerError(msg, se);
        } catch (Exception e) {
            getLog()
                    .error(
                            "Error while notifying SchedulerListener of error: ",
                            e);
            getLog().error(
                    "  Original error (for notification) was: " + msg, se);
        }
    }
}
项目:lams    文件:QuartzScheduler.java   
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);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersError(String msg, SchedulerException se) {
    // 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.schedulerError(msg, se);
        } catch (Exception e) {
            getLog()
                    .error(
                            "Error while notifying SchedulerListener of error: ",
                            e);
            getLog().error(
                    "  Original error (for notification) was: " + msg, se);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersSchduled(Trigger trigger) {
    // 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.jobScheduled(trigger);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of scheduled job."
                            + "  Triger=" + trigger.getFullName(), e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
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);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersFinalized(Trigger trigger) {
    // 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.triggerFinalized(trigger);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of finalized trigger."
                            + "  Triger=" + trigger.getFullName(), e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersPausedTrigger(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.triggersPaused(name, group);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of paused trigger/group."
                            + "  Triger=" + group + "." + name, e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersResumedTrigger(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.triggersResumed(name, group);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of resumed trigger/group."
                            + "  Triger=" + group + "." + name, e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersPausedJob(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.jobsPaused(name, group);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of paused job/group."
                            + "  Job=" + group + "." + name, e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
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);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersInStandbyMode() {
    // 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.schedulerInStandbyMode();
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of inStandByMode.",
                    e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersStarted() {
    // 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.schedulerStarted();
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of startup.",
                    e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersShutdown() {
    // 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.schedulerShutdown();
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of shutdown.",
                    e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersShuttingdown() {
    // 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.schedulerShuttingdown();
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of shutdown.",
                    e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersJobAdded(JobDetail jobDetail) {
    // 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.jobAdded(jobDetail);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of JobAdded.",
                    e);
        }
    }
}
项目:asura    文件:QuartzScheduler.java   
public void notifySchedulerListenersJobDeleted(String jobName, String groupName) {
    // 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.jobDeleted(jobName, groupName);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of JobAdded.",
                    e);
        }
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobAdded(JobDetail jobDetail) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobAdded(jobDetail);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobDeleted(JobKey jobKey) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobDeleted(jobKey);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobScheduled(Trigger trigger) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobScheduled(trigger);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobUnscheduled(TriggerKey triggerKey) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobUnscheduled(triggerKey);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void triggerFinalized(Trigger trigger) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.triggerFinalized(trigger);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void triggerPaused(TriggerKey key) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.triggerPaused(key);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void triggersPaused(String triggerGroup) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.triggersPaused(triggerGroup);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void triggerResumed(TriggerKey key) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.triggerResumed(key);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void triggersResumed(String triggerGroup) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.triggersResumed(triggerGroup);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulingDataCleared() {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulingDataCleared();
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobPaused(JobKey key) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobPaused(key);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobsPaused(String jobGroup) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobsPaused(jobGroup);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobResumed(JobKey key) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobResumed(key);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void jobsResumed(String jobGroup) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.jobsResumed(jobGroup);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulerError(String msg, SchedulerException cause) {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulerError(msg, cause);
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulerStarted() {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulerStarted();
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulerStarting() {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while (itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulerStarting();
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulerInStandbyMode() {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulerInStandbyMode();
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulerShutdown() {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulerShutdown();
    }
}
项目:lams    文件:BroadcastSchedulerListener.java   
public void schedulerShuttingdown() {
    Iterator<SchedulerListener> itr = listeners.iterator();
    while(itr.hasNext()) {
        SchedulerListener l = itr.next();
        l.schedulerShuttingdown();
    }
}
项目:lams    文件:QuartzScheduler.java   
private List<SchedulerListener> buildSchedulerListenerList() {
    List<SchedulerListener> allListeners = new LinkedList<SchedulerListener>();
    allListeners.addAll(getListenerManager().getSchedulerListeners());
    allListeners.addAll(getInternalSchedulerListeners());

    return allListeners;
}
项目:lams    文件:QuartzScheduler.java   
public void notifySchedulerListenersSchduled(Trigger trigger) {
    // 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.jobScheduled(trigger);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of scheduled job."
                            + "  Triger=" + trigger.getKey(), e);
        }
    }
}
项目:lams    文件:QuartzScheduler.java   
public void notifySchedulerListenersFinalized(Trigger trigger) {
    // 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.triggerFinalized(trigger);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of finalized trigger."
                            + "  Triger=" + trigger.getKey(), e);
        }
    }
}
项目:lams    文件:QuartzScheduler.java   
public void notifySchedulerListenersPausedTrigger(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 {
            sl.triggerPaused(triggerKey);
        } catch (Exception e) {
            getLog().error(
                    "Error while notifying SchedulerListener of paused trigger: "
                            + triggerKey, e);
        }
    }
}