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); }
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 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 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); }
/** * 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); }
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); }
public void addParameters(String jobID, List<Parameter> params) throws JobNotFoundException, JobPersistenceException, TransientException { log.debug("addParameters: " + jobID + "," + toString(params)); JobDAO dao = getDAO(); dao.addParameters(jobID, params); } private String toString(List list)