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

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

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

QuartzScheduler.addJob介绍

[英]Add the given Job to the Scheduler - with no associated Trigger. The Job will be 'dormant' until it is scheduled with a Trigger, or Scheduler.triggerJob() is called for it.

The Job must by definition be 'durable', if it is not, SchedulerException will be thrown.
[中]将给定的Job添加到计划程序中-没有关联的TriggerJob将处于“休眠”状态,直到使用TriggerScheduler.triggerJob()调用它。
根据定义,Job必须是“持久的”,否则将抛出ScheduleException。

代码示例

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

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void addJob(JobDetail jobDetail, boolean replace)
  throws SchedulerException {
  sched.addJob(jobDetail, replace);
}

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

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void addJob(JobDetail jobDetail, boolean replace)
  throws SchedulerException {
  sched.addJob(jobDetail, replace);
}

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

public void addJob(JobDetail jobDetail, boolean replace, boolean storeNonDurableWhileAwaitingScheduling)
    throws SchedulerException {
  sched.addJob(jobDetail, replace, storeNonDurableWhileAwaitingScheduling);
}

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

public void addJob(JobDetail jobDetail, boolean replace, boolean storeNonDurableWhileAwaitingScheduling)
    throws SchedulerException {
  sched.addJob(jobDetail, replace, storeNonDurableWhileAwaitingScheduling);
}

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

/**
 * <p>
 * Add the given <code>Job</code> to the Scheduler - with no associated
 * <code>Trigger</code>. The <code>Job</code> will be 'dormant' until
 * it is scheduled with a <code>Trigger</code>, or <code>Scheduler.triggerJob()</code>
 * is called for it.
 * </p>
 * 
 * <p>
 * The <code>Job</code> must by definition be 'durable', if it is not,
 * SchedulerException will be thrown.
 * </p>
 * 
 * @throws SchedulerException
 *           if there is an internal Scheduler error, or if the Job is not
 *           durable, or a Job with the same name already exists, and
 *           <code>replace</code> is <code>false</code>.
 */
public void addJob(JobDetail jobDetail, boolean replace) throws SchedulerException {
  addJob(jobDetail, replace, false);
}

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

/**
 * <p>
 * Add the given <code>Job</code> to the Scheduler - with no associated
 * <code>Trigger</code>. The <code>Job</code> will be 'dormant' until
 * it is scheduled with a <code>Trigger</code>, or <code>Scheduler.triggerJob()</code>
 * is called for it.
 * </p>
 * 
 * <p>
 * The <code>Job</code> must by definition be 'durable', if it is not,
 * SchedulerException will be thrown.
 * </p>
 * 
 * @throws SchedulerException
 *           if there is an internal Scheduler error, or if the Job is not
 *           durable, or a Job with the same name already exists, and
 *           <code>replace</code> is <code>false</code>.
 */
public void addJob(JobDetail jobDetail, boolean replace) throws SchedulerException {
  addJob(jobDetail, replace, false);
}

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

public void addJob(CompositeData jobDetail, boolean replace) throws Exception {
  try {
    scheduler.addJob(JobDetailSupport.newJobDetail(jobDetail), replace);
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

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

scheduler.addJob(jobDetail, replace);
} 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 void addJob(JobDetail jobDetail, boolean replace)
  throws SchedulerException {
  sched.addJob(schedCtxt, jobDetail, replace);
}

代码示例来源: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 void addJob(JobDetail jobDetail, boolean replace)
  throws SchedulerException {
  sched.addJob(schedCtxt, jobDetail, replace);
}

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

public void addJob(CompositeData jobDetail, boolean replace) throws Exception {
  try {
    scheduler.addJob(JobDetailSupport.newJobDetail(jobDetail), replace);
  } catch (Exception e) {
    throw newPlainException(e);
  }
}

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

scheduler.addJob(jobDetail, replace);
} catch (Exception e) {
  throw newPlainException(e);

相关文章

微信公众号

最新文章

更多

QuartzScheduler类方法