本文整理了Java中org.quartz.core.QuartzScheduler.getTriggerState
方法的一些代码示例,展示了QuartzScheduler.getTriggerState
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QuartzScheduler.getTriggerState
方法的具体详情如下:
包路径:org.quartz.core.QuartzScheduler
类名称:QuartzScheduler
方法名:getTriggerState
[英]Get the current state of the identified Trigger
.
J
[中]获取标识的Trigger
的当前状态。
J
代码示例来源:origin: quartz-scheduler/quartz
/**
* <p>
* Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
* </p>
*/
public TriggerState getTriggerState(TriggerKey triggerKey)
throws SchedulerException {
return sched.getTriggerState(triggerKey);
}
代码示例来源:origin: quartz-scheduler/quartz
/**
* <p>
* Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
* </p>
*/
public TriggerState getTriggerState(TriggerKey triggerKey)
throws SchedulerException {
return sched.getTriggerState(triggerKey);
}
代码示例来源:origin: quartz-scheduler/quartz
public String getTriggerState(String triggerName, String triggerGroupName) throws Exception {
try {
TriggerKey triggerKey = triggerKey(triggerName, triggerGroupName);
TriggerState ts = scheduler.getTriggerState(triggerKey);
return ts.name();
} catch (Exception e) {
throw newPlainException(e);
}
}
代码示例来源:origin: quartz/quartz-all
/**
* <p>
* Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
* passing the <code>SchedulingContext</code> associated with this
* instance.
* </p>
*/
public int getTriggerState(String triggerName, String triggerGroup)
throws SchedulerException {
return sched.getTriggerState(schedCtxt, triggerName, triggerGroup);
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
/**
* <p>
* Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
* passing the <code>SchedulingContext</code> associated with this
* instance.
* </p>
*/
public int getTriggerState(String triggerName, String triggerGroup)
throws SchedulerException {
return sched.getTriggerState(schedCtxt, triggerName, triggerGroup);
}
代码示例来源:origin: nkcoder/quartz-explained
public String getTriggerState(String triggerName, String triggerGroupName) throws Exception {
try {
TriggerKey triggerKey = triggerKey(triggerName, triggerGroupName);
TriggerState ts = scheduler.getTriggerState(triggerKey);
return ts.name();
} catch (Exception e) {
throw newPlainException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!