@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()); } } } }
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)); }
public ListenerManager getListenerManager() { try { return scheduler.getListenerManager(); } catch (final SchedulerException e) { throw new QuartzSchedulerException(e); } }
/** * @see org.quartz.Scheduler#getListenerManager() */ public ListenerManager getListenerManager() throws SchedulerException { return sched.getListenerManager(); }
public ListenerManager getListenerManager() throws SchedulerException { throw new SchedulerException( "Operation not supported for remote schedulers."); }
public ListenerManager getListenerManager() { return listenerManager; }
public void destroy() throws SchedulerException { log.info("destroy()"); ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager(); listenerManager.removeTriggerListener(triggerListener.getName()); }
public ListenerManager getListenerManager() throws SchedulerException { // TODO Auto-generated method stub return null; }
/** * <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."); }