/** * Add the given <code>{@link org.quartz.listeners.JobListener}</code> to the <code>Scheduler * </code>'s <i>internal</i> list. */ private void addInternalJobListener(JobListener jobListener) { if (jobListener.getName() == null || jobListener.getName().length() == 0) { throw new IllegalArgumentException("JobListener name cannot be empty."); } synchronized (internalJobListeners) { internalJobListeners.put(jobListener.getName(), jobListener); } }
public void notifyJobListenersWasVetoed(JobExecutionContext jec) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobExecutionVetoed(jec); } catch (Exception e) { SchedulerException se = new SchedulerException("JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersToBeExecuted(JobExecutionContext jec) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobToBeExecuted(jec); } catch (Exception e) { SchedulerException se = new SchedulerException( "JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersWasExecuted(JobExecutionContext jec, JobExecutionException je) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobWasExecuted(jec, je); } catch (Exception e) { SchedulerException se = new SchedulerException("JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersWasVetoed(JobExecutionContext jec) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobExecutionVetoed(jec); } catch (Exception e) { SchedulerException se = new SchedulerException("JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersToBeExecuted(JobExecutionContext jec) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobToBeExecuted(jec); } catch (Exception e) { SchedulerException se = new SchedulerException("JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersWasExecuted(JobExecutionContext jec, JobExecutionException je) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobWasExecuted(jec, je); } catch (Exception e) { SchedulerException se = new SchedulerException("JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersWasVetoed(JobExecutionContext jec) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobExecutionVetoed(jec); } catch (Exception e) { SchedulerException se = new SchedulerException( "JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersToBeExecuted(JobExecutionContext jec) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobToBeExecuted(jec); } catch (Exception e) { SchedulerException se = new SchedulerException("JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
public void notifyJobListenersWasExecuted(JobExecutionContext jec, JobExecutionException je) throws SchedulerException { // build a list of all job listeners that are to be notified... List<JobListener> jobListeners = buildJobListenerList(); // notify all job listeners for (JobListener jl : jobListeners) { try { jl.jobWasExecuted(jec, je); } catch (Exception e) { SchedulerException se = new SchedulerException( "JobListener '" + jl.getName() + "' threw exception: " + e.getMessage(), e); throw se; } } }
/** * <p> * Add the given <code>{@link org.quartz.listeners.JobListener}</code> to the <code>Scheduler</code>'s <i>internal</i> list. * </p> */ private void addInternalJobListener(JobListener jobListener) { if (jobListener.getName() == null || jobListener.getName().length() == 0) { throw new IllegalArgumentException("JobListener name cannot be empty."); } synchronized (internalJobListeners) { internalJobListeners.put(jobListener.getName(), jobListener); } }
/** * <p> * Add the given <code>{@link org.quartz.listeners.JobListener}</code> to the <code>Scheduler</code>'s <i>internal</i> list. * </p> */ private void addInternalJobListener(JobListener jobListener) { if (jobListener.getName() == null || jobListener.getName().length() == 0) { throw new IllegalArgumentException("JobListener name cannot be empty."); } synchronized (internalJobListeners) { internalJobListeners.put(jobListener.getName(), jobListener); } }