/** * <p> * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread} * </code> to obtain instances of <code> * {@link org.quartz.core.JobRunShell}</code>. * </p> */ public JobRunShell createJobRunShell(TriggerFiredBundle bndle) throws SchedulerException { return new JobRunShell(scheduler, bndle); } }
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error executing Job (" if (!notifyListenersBeginning(jec)) { break; complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error during veto of Job (" endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getKey() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getKey() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException( if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) { break; jec.incrementRefireCount(); try {
/** * Override passivate() to ensure we always cleanup the UserTransaction. */ @Override public void passivate() { cleanupUserTransaction(); super.passivate(); }
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error executing Job (" if (!notifyListenersBeginning(jec)) { break; qs.notifyJobStoreJobVetoed(schdCtxt, trigger, jobDetail, instCode); } catch(JobPersistenceException jpe) { vetoedJobRetryLoop(trigger, jobDetail, instCode); complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error during veto of Job (" endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getFullName() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getFullName() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException( if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) {
try { shell = qsRsrcs.getJobRunShellFactory().createJobRunShell(bndle); shell.initialize(qs); } catch (SchedulerException se) { qsRsrcs.getJobStore().triggeredJobComplete(triggers.get(i), bndle.getJobDetail(), CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_ERROR);
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error executing Job (" if (!notifyListenersBeginning(jec)) { break; qs.notifyJobStoreJobVetoed(schdCtxt, trigger, jobDetail, instCode); } catch(JobPersistenceException jpe) { vetoedJobRetryLoop(trigger, jobDetail, instCode); complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error during veto of Job (" endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getFullName() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getFullName() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException( if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) {
try { shell = qsRsrcs.getJobRunShellFactory().createJobRunShell(bndle); shell.initialize(qs); } catch (SchedulerException se) { qsRsrcs.getJobStore().triggeredJobComplete(triggers.get(i), bndle.getJobDetail(), CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_ERROR);
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error executing Job (" + jec.getJobDetail().getName() + ": couldn't begin execution.", se); if (!notifyListenersBeginning(jec)) { break; qs.notifyJobStoreJobVetoed(trigger, jobDetail, instCode); } catch (JobPersistenceException jpe) { vetoedJobRetryLoop(trigger, jobDetail, instCode); complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error during veto of Job (" + jec.getJobDetail().getName() + ": couldn't finalize execution.", se); endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getName() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getName() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException("Job threw an unhandled exception.", e); qs.notifySchedulerListenersError("Job (" + jec.getJobDetail().getName() + " threw an exception.", se); if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) { break;
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error executing Job (" if (!notifyListenersBeginning(jec)) { break; complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error during veto of Job (" endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getKey() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getKey() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException( if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) { break; jec.incrementRefireCount(); try {
/** * <p> * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread} * </code> to obtain instances of <code> * {@link org.quartz.core.JobRunShell}</code>. * </p> */ public JobRunShell createJobRunShell(TriggerFiredBundle bndle) throws SchedulerException { return new JobRunShell(scheduler, bndle); } }
try { shell = quartzSchedulerResources.getJobRunShellFactory().createJobRunShell(bndle); shell.initialize(quartzScheduler); } catch (SchedulerException se) { try {
/** * Override passivate() to ensure we always cleanup the UserTransaction. */ @Override public void passivate() { cleanupUserTransaction(); super.passivate(); }
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error executing Job (" + jec.getJobDetail().getName() + ": couldn't begin execution.", se); if (!notifyListenersBeginning(jec)) { break; qs.notifyJobStoreJobVetoed(trigger, jobDetail, instCode); } catch (JobPersistenceException jpe) { vetoedJobRetryLoop(trigger, jobDetail, instCode); complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError("Error during veto of Job (" + jec.getJobDetail().getName() + ": couldn't finalize execution.", se); endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getName() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getName() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException("Job threw an unhandled exception.", e); qs.notifySchedulerListenersError("Job (" + jec.getJobDetail().getName() + " threw an exception.", se); if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) { break;
/** * <p> * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread} * </code> to obtain instances of <code> * {@link org.quartz.core.JobRunShell}</code>. * </p> */ public JobRunShell createJobRunShell(TriggerFiredBundle bundle) throws SchedulerException { ExecuteInJTATransaction jtaAnnotation = ClassUtils.getAnnotation(bundle.getJobDetail().getJobClass(), ExecuteInJTATransaction.class); if(jtaAnnotation == null) return new JobRunShell(scheduler, bundle); else { int timeout = jtaAnnotation.timeout(); if (timeout >= 0) { return new JTAJobRunShell(scheduler, bundle, timeout); } else { return new JTAJobRunShell(scheduler, bundle); } } }
try { shell = quartzSchedulerResources.getJobRunShellFactory().createJobRunShell(bndle); shell.initialize(quartzScheduler); } catch (SchedulerException se) { try {
/** * <p> * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread} * </code> to return instances of <code> * {@link org.quartz.core.JobRunShell}</code>. * </p> */ public void returnJobRunShell(JobRunShell jobRunShell) { jobRunShell.passivate(); }
begin(); } catch (SchedulerException se) { qs.notifySchedulerListenersError( if (!notifyListenersBeginning(jec)) { break; qs.notifyJobStoreJobVetoed(trigger, jobDetail, instCode); } catch (JobPersistenceException jpe) { vetoedJobRetryLoop(trigger, jobDetail, instCode); complete(true); } catch (SchedulerException se) { qs.notifySchedulerListenersError( endTime = System.currentTimeMillis(); jobExEx = jee; getLog().info("Job " + jobDetail.getName() + " threw a JobExecutionException: ", jobExEx); } catch (Throwable e) { endTime = System.currentTimeMillis(); getLog().error("Job " + jobDetail.getName() + " threw an unhandled Exception: ", e); SchedulerException se = new SchedulerException("Job threw an unhandled exception.", e); qs.notifySchedulerListenersError( if (!notifyJobListenersComplete(jec, jobExEx)) { break; if (!notifyTriggerListenersComplete(jec, instCode)) { break;
/** * <p> * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread} * </code> to obtain instances of <code> * {@link org.quartz.core.JobRunShell}</code>. * </p> */ public JobRunShell createJobRunShell(TriggerFiredBundle bundle) throws SchedulerException { ExecuteInJTATransaction jtaAnnotation = ClassUtils.getAnnotation(bundle.getJobDetail().getJobClass(), ExecuteInJTATransaction.class); if(jtaAnnotation == null) return new JobRunShell(scheduler, bundle); else { int timeout = jtaAnnotation.timeout(); if (timeout >= 0) { return new JTAJobRunShell(scheduler, bundle, timeout); } else { return new JTAJobRunShell(scheduler, bundle); } } }
try { shell = quartzSchedulerResources.getJobRunShellFactory().createJobRunShell(bndle); shell.initialize(quartzScheduler); } catch (SchedulerException se) { try {
/** * <p> * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread} * </code> to return instances of <code> * {@link org.quartz.core.JobRunShell}</code>. * </p> */ public void returnJobRunShell(JobRunShell jobRunShell) { jobRunShell.passivate(); }