@Override public List<String> getJobGroupNames() throws JobPersistenceException { try { return realJobStore.getJobGroupNames(); } catch (RejoinException e) { throw new JobPersistenceException("Job name retrieval failed due to client rejoin", e); } }
public void execute(Connection conn) throws JobPersistenceException { if (newJob.isVolatile() && !newTrigger.isVolatile()) { JobPersistenceException jpe = new JobPersistenceException( "Cannot associate non-volatile trigger with a volatile job!"); jpe.setErrorCode(SchedulerException.ERR_CLIENT_ERROR); throw jpe; } storeJob(conn, ctxt, newJob, false); storeTrigger(conn, ctxt, newTrigger, newJob, false, Constants.STATE_WAITING, false, false); } });
if (e.getCause() instanceof NotSerializableException) {
/** * <p> * Create a <code>JobPersistenceException</code> with the given message * and cause. * </p> */ public JobPersistenceException(String msg, Throwable cause) { super(msg, cause); setErrorCode(ERR_PERSISTENCE); }
public Object execute(Connection conn) throws JobPersistenceException { try { return triggerFired(conn, ctxt, trigger); } catch (JobPersistenceException jpe) { // If job didn't exisit, we still want to commit our work and return null. if (jpe.getErrorCode() == SchedulerException.ERR_PERSISTENCE_JOB_DOES_NOT_EXIST) { return null; } else { throw jpe; } } } });
public void execute(Connection conn) throws JobPersistenceException { if (newJob.isVolatile() && !newTrigger.isVolatile()) { JobPersistenceException jpe = new JobPersistenceException( "Cannot associate non-volatile trigger with a volatile job!"); jpe.setErrorCode(SchedulerException.ERR_CLIENT_ERROR); throw jpe; } storeJob(conn, ctxt, newJob, false); storeTrigger(conn, ctxt, newTrigger, newJob, false, Constants.STATE_WAITING, false, false); } });
if (e.getCause() instanceof ClassNotFoundException && isOverWriteExistingData()) {
/** * <p> * Create a <code>JobPersistenceException</code> with the given message. * </p> */ public JobPersistenceException(String msg) { super(msg); setErrorCode(ERR_PERSISTENCE); }
public Object execute(Connection conn) throws JobPersistenceException { try { return triggerFired(conn, ctxt, trigger); } catch (JobPersistenceException jpe) { // If job didn't exisit, we still want to commit our work and return null. if (jpe.getErrorCode() == SchedulerException.ERR_PERSISTENCE_JOB_DOES_NOT_EXIST) { return null; } else { throw jpe; } } } });
@Override public Set<JobKey> getJobKeys(GroupMatcher<JobKey> matcher) throws JobPersistenceException { try { return realJobStore.getJobKeys(matcher); } catch (RejoinException e) { throw new JobPersistenceException("Job key retrieval failed due to client rejoin", e); } }
if (e.getCause() instanceof ClassNotFoundException && isOverWriteExistingData()) {
/** * <p> * Create a <code>JobPersistenceException</code> with the given message * and cause. * </p> */ public JobPersistenceException(String msg, Throwable cause) { super(msg, cause); setErrorCode(ERR_PERSISTENCE); }
@Override public Trigger.TriggerState getTriggerState(TriggerKey triggerKey) throws JobPersistenceException { try { return realJobStore.getTriggerState(triggerKey); } catch (RejoinException e) { throw new JobPersistenceException("Trigger state retrieval failed due to client rejoin", e); } }
if (e.getCause() instanceof NotSerializableException) {
/** * <p> * Create a <code>JobPersistenceException</code> with the given message. * </p> */ public JobPersistenceException(String msg) { super(msg); setErrorCode(ERR_PERSISTENCE); }
@Override public void pauseTrigger(TriggerKey triggerKey) throws JobPersistenceException { try { realJobStore.pauseTrigger(triggerKey); } catch (RejoinException e) { throw new JobPersistenceException("Pausing trigger failed due to client rejoin", e); } }
@Override public boolean removeCalendar(String calName) throws JobPersistenceException { try { return realJobStore.removeCalendar(calName); } catch (RejoinException e) { throw new JobPersistenceException("Removing calendar failed due to client rejoin", e); } }
@Override public OperableTrigger retrieveTrigger(TriggerKey triggerKey) throws JobPersistenceException { try { return realJobStore.retrieveTrigger(triggerKey); } catch (RejoinException e) { throw new JobPersistenceException("Trigger retrieval failed due to client rejoin", e); } }
@Override public boolean checkExists(final JobKey jobKey) throws JobPersistenceException { try { return realJobStore.checkExists(jobKey); } catch (RejoinException e) { throw new JobPersistenceException("Job existence check failed due to client rejoin", e); } }
@Override public void clearAllSchedulingData() throws JobPersistenceException { try { realJobStore.clearAllSchedulingData(); } catch (RejoinException e) { throw new JobPersistenceException("Scheduler data clear failed due to client rejoin", e); } }