Java 类org.quartz.ListenerManager 实例源码

项目:javamelody    文件:Quartz2Adapter.java   
@Override
public void removeGlobalJobListener(Class<? extends JobListener> jobListenerClass)
        throws SchedulerException {
    for (final Scheduler scheduler : JobInformations.getAllSchedulers()) {
        final ListenerManager listenerManager = scheduler.getListenerManager();
        final List<JobListener> globalJobListeners = listenerManager.getJobListeners();
        for (final JobListener jobListener : new ArrayList<JobListener>(globalJobListeners)) {
            if (jobListenerClass.isInstance(jobListener)) {
                listenerManager.removeJobListener(jobListener.getName());
            }
        }
    }
}
项目:sakai    文件:ScheduledInvocationManagerImpl.java   
public void init() throws SchedulerException {
    log.info("init()");
    triggerListener = new ContextTriggerListener("ContextTriggerListener");
    ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager();
    // Just filter on our group.
    listenerManager.addTriggerListener(triggerListener, GroupMatcher.triggerGroupEquals(GROUP_NAME));
}
项目:sakai    文件:ScheduledInvocationManagerImpl.java   
public void init() throws SchedulerException {
    log.info("init()");
    triggerListener = new ContextTriggerListener("ContextTriggerListener");
    ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager();
    // Just filter on our group.
    listenerManager.addTriggerListener(triggerListener, GroupMatcher.triggerGroupEquals(GROUP_NAME));
}
项目:elasticsearch-quartz    文件:ScheduleService.java   
public ListenerManager getListenerManager() {
    try {
        return scheduler.getListenerManager();
    } catch (final SchedulerException e) {
        throw new QuartzSchedulerException(e);
    }
}
项目:lams    文件:StdScheduler.java   
/**
 * @see org.quartz.Scheduler#getListenerManager()
 */
public ListenerManager getListenerManager() throws SchedulerException {
    return sched.getListenerManager();
}
项目:lams    文件:RemoteScheduler.java   
public ListenerManager getListenerManager() throws SchedulerException {
    throw new SchedulerException(
        "Operation not supported for remote schedulers.");
}
项目:lams    文件:QuartzScheduler.java   
public ListenerManager getListenerManager() {
    return listenerManager;
}
项目:sakai    文件:ScheduledInvocationManagerImpl.java   
public void destroy() throws SchedulerException {
    log.info("destroy()");
    ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager();
    listenerManager.removeTriggerListener(triggerListener.getName());
}
项目:FoxBPM    文件:FoxbpmScheduler.java   
public ListenerManager getListenerManager() throws SchedulerException {
    // TODO Auto-generated method stub
    return null;
}
项目:sakai    文件:ScheduledInvocationManagerImpl.java   
public void destroy() throws SchedulerException {
    log.info("destroy()");
    ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager();
    listenerManager.removeTriggerListener(triggerListener.getName());
}
项目:lams    文件:RemoteMBeanScheduler.java   
/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public ListenerManager getListenerManager() throws SchedulerException {
    throw new SchedulerException(
            "Operation not supported for remote schedulers.");
}