org.quartz.Trigger.getFullJobName()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(243)

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

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.");

相关文章