本文整理了Java中org.quartz.Trigger.getFullJobName()
方法的一些代码示例,展示了Trigger.getFullJobName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Trigger.getFullJobName()
方法的具体详情如下:
包路径:org.quartz.Trigger
类名称:Trigger
方法名:getFullJobName
[英]Returns the 'full name' of the Job
that the Trigger
points to, in the format "group.name".
[中]返回Trigger
指向的Job
的“全名”,格式为“group.name”。
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
+ newTrigger.getFullJobName()
+ ") referenced by the trigger does not exist.");
代码示例来源:origin: quartz/quartz-all
+ newTrigger.getFullJobName()
+ ") referenced by the trigger does not exist.");
代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl
private void rescheduleJob(JobExecutionContext context) throws JobExecutionException {
try {
Scheduler scheduler = context.getScheduler();
Trigger oldTrigger = context.getTrigger();
DateTime newStartTime = new DateTime().plusMinutes(5);
String newTriggerName = BatchJobUtil.getTriggerName(SupervisorApprovalJob.class, newStartTime);
Trigger newTrigger = new SimpleTrigger(newTriggerName, oldTrigger.getGroup(), newStartTime.toDate());
newTrigger.setJobName(oldTrigger.getJobName());
newTrigger.setJobGroup(oldTrigger.getJobGroup());
LOG.info("Rescheduing " + newTrigger.getFullJobName() + " to be run on " + newTrigger.getStartTime());
scheduler.rescheduleJob(oldTrigger.getName(), oldTrigger.getGroup(), newTrigger);
} catch (SchedulerException se) {
LOG.error("Failure to execute job due to SchedulerException", se);
// throw new JobExecutionException(se);
}
}
代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl
private void rescheduleJob(JobExecutionContext context) throws JobExecutionException {
try {
Scheduler scheduler = context.getScheduler();
Trigger oldTrigger = context.getTrigger();
DateTime newStartTime = new DateTime().plusMinutes(5);
String newTriggerName = BatchJobUtil.getTriggerName(PayrollApprovalJob.class, newStartTime);
Trigger newTrigger = new SimpleTrigger(newTriggerName, oldTrigger.getGroup(), newStartTime.toDate());
newTrigger.setJobName(oldTrigger.getJobName());
newTrigger.setJobGroup(oldTrigger.getJobGroup());
LOG.info("Rescheduing " + newTrigger.getFullJobName() + " to be run on " + newTrigger.getStartTime());
scheduler.rescheduleJob(oldTrigger.getName(), oldTrigger.getGroup(), newTrigger);
} catch (SchedulerException se) {
LOG.error("Failure to execute job due to SchedulerException", se);
// throw new JobExecutionException(se);
}
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
} else if (triggerInstCode == Trigger.INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR) {
getLog().info("All triggers of Job "
+ trigger.getFullJobName() + " set to ERROR state.");
setAllTriggersOfJobToState(
trigger.getJobName(),
代码示例来源:origin: quartz/quartz-all
} else if (triggerInstCode == Trigger.INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR) {
getLog().info("All triggers of Job "
+ trigger.getFullJobName() + " set to ERROR state.");
setAllTriggersOfJobToState(
trigger.getJobName(),
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
} else if (triggerInstCode == Trigger.INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR) {
getLog().info("All triggers of Job " +
trigger.getFullJobName() + " set to ERROR state.");
getDelegate().updateTriggerStatesForJob(conn,
trigger.getJobName(), trigger.getJobGroup(),
代码示例来源:origin: quartz/quartz-all
} else if (triggerInstCode == Trigger.INSTRUCTION_SET_ALL_JOB_TRIGGERS_ERROR) {
getLog().info("All triggers of Job " +
trigger.getFullJobName() + " set to ERROR state.");
getDelegate().updateTriggerStatesForJob(conn,
trigger.getJobName(), trigger.getJobGroup(),
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
+ newTrigger.getFullJobName()
+ ") referenced by the trigger does not exist.");
代码示例来源:origin: quartz/quartz-all
+ newTrigger.getFullJobName()
+ ") referenced by the trigger does not exist.");
内容来源于网络,如有侵权,请联系作者删除!