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

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

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

Scheduler.addGlobalTriggerListener介绍

[英]Add the given TriggerListener to the Scheduler's global list.

Listeners in the 'global' list receive notification of execution events for ALL Triggers.
[中]将给定的TriggerListener添加到Scheduler的全局列表中。
“全局”列表中的侦听器接收所有Trigger的执行事件通知。

代码示例

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

/**
 * <p>
 * Called during creation of the <code>Scheduler</code> in order to give
 * the <code>SchedulerPlugin</code> a chance to initialize.
 * </p>
 * 
 * @throws SchedulerConfigException
 *           if there is an error initializing.
 */
public void initialize(String name, Scheduler scheduler)
  throws SchedulerException {
  this.name = name;
  scheduler.addGlobalTriggerListener(this);
}

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

/**
 * <p>
 * Called during creation of the <code>Scheduler</code> in order to give
 * the <code>SchedulerPlugin</code> a chance to initialize.
 * </p>
 * 
 * @throws SchedulerConfigException
 *           if there is an error initializing.
 */
public void initialize(String name, Scheduler scheduler)
  throws SchedulerException {
  this.name = name;
  scheduler.addGlobalTriggerListener(this);
}

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

public void addGlobalTriggerListener(TriggerListener triggerListener) throws SchedulerException {
  scheduler.addGlobalTriggerListener(triggerListener);
}

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

public void addGlobalTriggerListener(TriggerListener triggerListener) throws SchedulerException {
  this.scheduler.addGlobalTriggerListener(triggerListener);
}

相关文章