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

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

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

QuartzScheduler.getCurrentlyExecutingJobs介绍

[英]Return a list of JobExecutionContext objects that represent all currently executing Jobs in this Scheduler instance.

This method is not cluster aware. That is, it will only return Jobs currently executing in this Scheduler instance, not across the entire cluster.

Note that the list returned is an 'instantaneous' snap-shot, and that as soon as it's returned, the true list of executing jobs may be different.
[中]返回JobExecutionContext对象的列表,这些对象表示此计划程序实例中当前正在执行的所有作业。
此方法不支持群集。也就是说,它将只返回当前在此调度程序实例中执行的作业,而不是整个集群中的作业。
请注意,返回的列表是一个“即时”快照,一旦返回,执行作业的真实列表可能会有所不同。

代码示例

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

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

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

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

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

public TabularData getCurrentlyExecutingJobs() throws Exception {
  try {
    List<JobExecutionContext> currentlyExecutingJobs = scheduler.getCurrentlyExecutingJobs();
    return JobExecutionContextSupport.toTabularData(currentlyExecutingJobs);
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

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

List<JobExecutionContext> jobs = getCurrentlyExecutingJobs();

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

List<JobExecutionContext> jobs = getCurrentlyExecutingJobs();

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

List<JobExecutionContext> jobs = getCurrentlyExecutingJobs();

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

List<JobExecutionContext> jobs = getCurrentlyExecutingJobs();

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

List<JobExecutionContext> jobs = getCurrentlyExecutingJobs();
for(JobExecutionContext job: jobs) {
  if(job.getJobInstance() instanceof InterruptableJob)

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

List<JobExecutionContext> jobs = getCurrentlyExecutingJobs();
for(JobExecutionContext job: jobs) {
  if(job.getJobInstance() instanceof InterruptableJob)

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

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

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

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

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

public TabularData getCurrentlyExecutingJobs() throws Exception {
  try {
    List<JobExecutionContext> currentlyExecutingJobs = scheduler.getCurrentlyExecutingJobs();
    return JobExecutionContextSupport.toTabularData(currentlyExecutingJobs);
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

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

List jobs = getCurrentlyExecutingJobs();
java.util.Iterator it = jobs.iterator();

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

List jobs = getCurrentlyExecutingJobs();
java.util.Iterator it = jobs.iterator();

相关文章

微信公众号

最新文章

更多

QuartzScheduler类方法