本文整理汇总了Java中org.quartz.ListenerManager类的典型用法代码示例。如果您正苦于以下问题:Java ListenerManager类的具体用法?Java ListenerManager怎么用?Java ListenerManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListenerManager类属于org.quartz包,在下文中一共展示了ListenerManager类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeGlobalJobListener
import org.quartz.ListenerManager; //导入依赖的package包/类
@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());
}
}
}
}
示例2: init
import org.quartz.ListenerManager; //导入依赖的package包/类
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));
}
示例3: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() {
try {
return scheduler.getListenerManager();
} catch (final SchedulerException e) {
throw new QuartzSchedulerException(e);
}
}
示例4: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
/**
* @see org.quartz.Scheduler#getListenerManager()
*/
public ListenerManager getListenerManager() throws SchedulerException {
return sched.getListenerManager();
}
示例5: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() throws SchedulerException {
throw new SchedulerException(
"Operation not supported for remote schedulers.");
}
示例6: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() {
return listenerManager;
}
示例7: destroy
import org.quartz.ListenerManager; //导入依赖的package包/类
public void destroy() throws SchedulerException {
log.info("destroy()");
ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager();
listenerManager.removeTriggerListener(triggerListener.getName());
}
示例8: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() throws SchedulerException {
// TODO Auto-generated method stub
return null;
}
示例9: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
/**
* <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.");
}