org.quartz.core.QuartzScheduler.getTriggerState()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(108)

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

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);
  }
}

相关文章

微信公众号

最新文章

更多

QuartzScheduler类方法