本文整理了Java中org.quartz.core.QuartzScheduler.addJob
方法的一些代码示例,展示了QuartzScheduler.addJob
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QuartzScheduler.addJob
方法的具体详情如下:
包路径:org.quartz.core.QuartzScheduler
类名称: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
添加到计划程序中-没有关联的Trigger
。Job
将处于“休眠”状态,直到使用Trigger
或Scheduler.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);
内容来源于网络,如有侵权,请联系作者删除!