public Iterator<JobRef> iterator(String appname, List<ExecutionPhase> phases) throws JobPersistenceException, TransientException { return iterator(appname, phases, null, null); } public Iterator<JobRef> iterator(String appname, List<ExecutionPhase> phases, Date after, Integer last)
/** * Set the phase. * @param jobID * @param ep * @throws JobNotFoundException * @throws JobPersistenceException * @throws TransientException */ public void setPhase(String jobID, ExecutionPhase ep) throws JobNotFoundException, JobPersistenceException, TransientException { setPhase(jobID, null, ep); }
public Iterator<JobRef> iterator(String appname, List<ExecutionPhase> phases, Date after, Integer last) throws JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.iterator(appname, phases, after, last); }
protected JobDAO getDAO() throws JobPersistenceException { try { DataSource ds = getDataSource(); JobDAO.JobSchema js = getJobSchema(); return new JobDAO(ds, js, identityManager, idGenerator); } catch(NamingException ex) { throw new JobPersistenceException("failed to find/create DataSource", ex); } finally { } }
public Job get(String jobID) throws JobNotFoundException, JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.get(jobID); }
public ExecutionPhase getPhase(String jobID) throws JobNotFoundException, JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.getPhase(jobID); }
public ExecutionPhase setPhase(String jobID, ExecutionPhase start, ExecutionPhase end, Date date) throws JobNotFoundException, JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.set(jobID, start, end, date); }
public void getDetails(Job job) throws JobPersistenceException, TransientException { JobDAO dao = getDAO(); dao.getDetails(job); }
public ExecutionPhase setPhase(String jobID, ExecutionPhase start, ExecutionPhase end, ErrorSummary error, Date date) throws JobNotFoundException, JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.set(jobID, start, end, error, date); } }
public void delete(String jobID) throws JobPersistenceException, TransientException { JobDAO dao = getDAO(); dao.delete(jobID); }
/** * Conditionally change phase from start to end. * * @param jobID * @param start * @param end * @return the final phase (end) or null if not successful * @throws JobNotFoundException * @throws TransientException */ public ExecutionPhase setPhase(String jobID, ExecutionPhase start, ExecutionPhase end) throws JobNotFoundException, JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.set(jobID, start, end, null); }
public Job put(Job job) throws JobPersistenceException, TransientException { AccessControlContext acContext = AccessController.getContext(); Subject caller = Subject.getSubject(acContext); JobDAO dao = getDAO(); return dao.put(job, caller); }
/** * Conditionally change phase from start to end and, if successful, add the specified results to the * job. * * @param jobID * @param start * @param end * @param results * @return the final phase (end) or null if not successful * @throws JobNotFoundException * @throws TransientException */ public ExecutionPhase setPhase(String jobID, ExecutionPhase start, ExecutionPhase end, List<Result> results, Date date) throws JobNotFoundException, JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.set(jobID, start, end, results, date); }