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

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

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

QuartzScheduler.getJobGroupNames介绍

[英]Get the names of all known org.quartz.Job groups.
[中]获取所有已知org.quartz.Job组的名称。

代码示例

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

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public List<String> getJobGroupNames() throws SchedulerException {
  return sched.getJobGroupNames();
}

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

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public List<String> getJobGroupNames() throws SchedulerException {
  return sched.getJobGroupNames();
}

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

public List<String> getJobGroupNames()    throws Exception {
  try {
    return scheduler.getJobGroupNames();
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

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

public TabularData getAllJobDetails() throws Exception {
  try {
    List<JobDetail> detailList = new ArrayList<JobDetail>();
    for (String jobGroupName : scheduler.getJobGroupNames()) {
      for (JobKey jobKey : scheduler.getJobKeys(GroupMatcher.jobGroupEquals(jobGroupName))) {
        detailList.add(scheduler.getJobDetail(jobKey));
      }
    }
    return JobDetailSupport.toTabularData(detailList.toArray(new JobDetail[detailList.size()]));
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

代码示例来源: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 String[] getJobGroupNames() throws SchedulerException {
  return sched.getJobGroupNames(schedCtxt);
}

代码示例来源: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 String[] getJobGroupNames() throws SchedulerException {
  return sched.getJobGroupNames(schedCtxt);
}

代码示例来源:origin: nkcoder/quartz-explained

public List<String> getJobGroupNames()    throws Exception {
  try {
    return scheduler.getJobGroupNames();
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

代码示例来源:origin: nkcoder/quartz-explained

public TabularData getAllJobDetails() throws Exception {
  try {
    List<JobDetail> detailList = new ArrayList<JobDetail>();
    for (String jobGroupName : scheduler.getJobGroupNames()) {
      for (JobKey jobKey : scheduler.getJobKeys(GroupMatcher.jobGroupEquals(jobGroupName))) {
        detailList.add(scheduler.getJobDetail(jobKey));
      }
    }
    return JobDetailSupport.toTabularData(detailList.toArray(new JobDetail[detailList.size()]));
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

相关文章

微信公众号

最新文章

更多

QuartzScheduler类方法