本文整理汇总了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());
}
}
}
}
开发者ID:javamelody,项目名称:javamelody,代码行数:14,代码来源:Quartz2Adapter.java
示例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));
}
开发者ID:sakaiproject,项目名称:sakai,代码行数:8,代码来源:ScheduledInvocationManagerImpl.java
示例3: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() {
try {
return scheduler.getListenerManager();
} catch (final SchedulerException e) {
throw new QuartzSchedulerException(e);
}
}
开发者ID:codelibs,项目名称:elasticsearch-quartz,代码行数:8,代码来源:ScheduleService.java
示例4: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
/**
* @see org.quartz.Scheduler#getListenerManager()
*/
public ListenerManager getListenerManager() throws SchedulerException {
return sched.getListenerManager();
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:StdScheduler.java
示例5: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() throws SchedulerException {
throw new SchedulerException(
"Operation not supported for remote schedulers.");
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:RemoteScheduler.java
示例6: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() {
return listenerManager;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:QuartzScheduler.java
示例7: destroy
import org.quartz.ListenerManager; //导入依赖的package包/类
public void destroy() throws SchedulerException {
log.info("destroy()");
ListenerManager listenerManager = schedulerFactory.getScheduler().getListenerManager();
listenerManager.removeTriggerListener(triggerListener.getName());
}
开发者ID:sakaiproject,项目名称:sakai,代码行数:6,代码来源:ScheduledInvocationManagerImpl.java
示例8: getListenerManager
import org.quartz.ListenerManager; //导入依赖的package包/类
public ListenerManager getListenerManager() throws SchedulerException {
// TODO Auto-generated method stub
return null;
}
开发者ID:FoxBPM,项目名称:FoxBPM,代码行数:5,代码来源:FoxbpmScheduler.java
示例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.");
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:RemoteMBeanScheduler.java
注:本文中的org.quartz.ListenerManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论