@Override public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { JobKey sj = chainLinks.get(context.getJobDetail().getKey()); if(sj == null) { return; } getLog().info("Job '" + context.getJobDetail().getKey() + "' will now chain to Job '" + sj + "'"); try { context.getScheduler().triggerJob(sj); } catch(SchedulerException se) { getLog().error("Error encountered during chaining to Job '" + sj + "'", se); } } }
@Override public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { JobKey sj = chainLinks.get(context.getJobDetail().getKey()); if(sj == null) { return; } getLog().info("Job '" + context.getJobDetail().getKey() + "' will now chain to Job '" + sj + "'"); try { context.getScheduler().triggerJob(sj); } catch(SchedulerException se) { getLog().error("Error encountered during chaining to Job '" + sj + "'", se); } } }
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { Key sj = (Key) chainLinks.get(context.getJobDetail().getKey()); if(sj == null) { return; } getLog().info("Job '" + context.getJobDetail().getFullName() + "' will now chain to Job '" + sj + "'"); try { if(context.getJobDetail().isVolatile() || context.getTrigger().isVolatile()) { context.getScheduler().triggerJobWithVolatileTrigger(sj.getName(), sj.getGroup()); } else { context.getScheduler().triggerJob(sj.getName(), sj.getGroup()); } } catch(SchedulerException se) { getLog().error("Error encountered during chaining to Job '" + sj + "'", se); } } }
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { Key sj = (Key) chainLinks.get(context.getJobDetail().getKey()); if(sj == null) { return; } getLog().info("Job '" + context.getJobDetail().getFullName() + "' will now chain to Job '" + sj + "'"); try { if(context.getJobDetail().isVolatile() || context.getTrigger().isVolatile()) { context.getScheduler().triggerJobWithVolatileTrigger(sj.getName(), sj.getGroup()); } else { context.getScheduler().triggerJob(sj.getName(), sj.getGroup()); } } catch(SchedulerException se) { getLog().error("Error encountered during chaining to Job '" + sj + "'", se); } } }