本文整理了Java中org.quartz.Scheduler.addGlobalTriggerListener()
方法的一些代码示例,展示了Scheduler.addGlobalTriggerListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.addGlobalTriggerListener()
方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称:Scheduler
方法名:addGlobalTriggerListener
[英]Add the given TriggerListener
to the Scheduler
's global list.
Listeners in the 'global' list receive notification of execution events for ALL Trigger
s.
[中]将给定的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);
}
内容来源于网络,如有侵权,请联系作者删除!