org.quartz.Scheduler.addJobListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.quartz.Scheduler.addJobListener()方法的一些代码示例,展示了Scheduler.addJobListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.addJobListener()方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称:Scheduler
方法名:addJobListener

Scheduler.addJobListener介绍

[英]Add the given JobListener to the Scheduler's list, of registered JobListeners.
[中]将给定的JobListener添加到Scheduler的注册JobListener的列表中。

代码示例

代码示例来源:origin: org.rhq/rhq-enterprise-server

public void addJobListener(JobListener jobListener) throws SchedulerException {
  this.scheduler.addJobListener(jobListener);
}

代码示例来源:origin: org.rhq/rhq-enterprise-server

public void addJobListener(JobListener jobListener) throws SchedulerException {
  scheduler.addJobListener(jobListener);
}

代码示例来源:origin: org.kuali.kfs/kfs-core

/**
 * @see org.springframework.scheduling.quartz.SchedulerFactoryBean#createScheduler(org.quartz.SchedulerFactory, java.lang.String)
 */
@Override
protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) throws SchedulerException {
  Scheduler scheduler = super.createScheduler(schedulerFactory, schedulerName);
  scheduler.addJobListener(new MessageServiceExecutorJobListener());
  return scheduler;
}

代码示例来源:origin: quartz/quartz-all

JobListener listener = (JobListener) itr.next();
getLog().info("adding listener "+listener.getName()+" of class "+listener.getClass().getName());
sched.addJobListener(listener);

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

JobListener listener = (JobListener) itr.next();
getLog().info("adding listener "+listener.getName()+" of class "+listener.getClass().getName());
sched.addJobListener(listener);

相关文章