proposalGroup = gmsClient.getGroup(proposalGroupName); } catch (IOException ioex) { throw new TransientException("GMSClient failed to get proposal group " + proposalGroupName, ioex); } catch (GroupNotFoundException ignore) { if (!dryrun) {
throw new TransientException(msg, dt);
throw new TransientException("failed to delete job: " + jobID, t); else throw new JobPersistenceException("failed to delete job: " + jobID, t);
/** * Iterator over jobs owned by the specified owner. * * @param subject * @param phases Show only these phases * @param after Only show jobs after this time * @param last Show the last <i>last</i> jobs, ordererd by startTime ascending * @return job iterator */ public Iterator<JobRef> iterator(Subject subject, String appname, List<ExecutionPhase> phases, Date after, Integer last) throws TransientException, JobPersistenceException { Object owner = identManager.toOwner(subject); log.debug("iterator(" + owner + ")"); try { JobListIterator jobListIterator = new JobListIterator(jdbc, owner, appname, phases, after, last); prof.checkpoint("JobListStatementCreator"); return jobListIterator; } catch(Throwable t) { if (DBUtil.isTransientDBException(t)) throw new TransientException("failed to get job list for owner: " + owner, t); else throw new JobPersistenceException("failed to get job list for owner: " + owner, t); } }
/** * Get the current execution phase. * @param jobID * @return the current phase * @throws JobNotFoundException * @throws JobPersistenceException * @throws TransientException */ public ExecutionPhase getPhase(String jobID) throws JobNotFoundException, JobPersistenceException, TransientException { log.debug("getPhase: " + jobID); try { JobPhaseSelectStatementCreator sc = new JobPhaseSelectStatementCreator(); sc.setJobID(jobID); ExecutionPhase ret = (ExecutionPhase) jdbc.query(sc, new PhaseExtractor()); prof.checkpoint("JobPhaseSelectStatementCreator"); if (ret != null) return ret; } catch(Throwable t) { if (DBUtil.isTransientDBException(t)) throw new TransientException("failed to get job phase: " + jobID, t); else throw new JobPersistenceException("failed to get job phase: " + jobID, t); } throw new JobNotFoundException(jobID); }
throw new TransientException("failed to persist job parameters: " + jobID, t); else throw new JobPersistenceException("failed to persist job parameters: " + jobID, t);
throw new TransientException("failed to persist job: " + jobID, t); else throw new JobPersistenceException("failed to persist job: " + jobID, t);
/** * Load all stored Parameter(s) and Result(s) into the specified job. * * @param job * @throws JobPersistenceException * @throws TransientException */ public void getDetails(Job job) throws JobPersistenceException, TransientException { log.debug("getDetails: " + job.getID()); expectPersistentJob(job); try { JobDetailSelectStatementCreator sc = new JobDetailSelectStatementCreator(); sc.setJobID(job.getID()); jdbc.query(sc, new DetailExtractor(jobSchema, job)); // ignore unnecessary return value prof.checkpoint("JobDetailSelectStatementCreator"); } catch(Throwable t) { if (DBUtil.isTransientDBException(t)) throw new TransientException("failed to get job details: " + job.getID(), t); else throw new JobPersistenceException("failed to get job details: " + job.getID(), t); } }
throw new TransientException("failed to get job: " + jobID, t); else throw new JobPersistenceException("failed to get job: " + jobID, t);
throw new TransientException("failed to persist job: " + job.getID(), t); else throw new JobPersistenceException("failed to persist job: " + job.getID(), t);