/** * Set the phase of the specified job. * * @param jobID * @param ep * @throws JobNotFoundException * @throws JobPersistenceException * @throws TransientException */ public void set(String jobID, ExecutionPhase ep) throws JobNotFoundException, JobPersistenceException, TransientException { set(jobID, null, ep, null, null, null); }
/** * Conditionally set the phase from <em>start</em> to <em>end</em> and set the * error summary. The transition is successful IFF the current phase is equal to the * starting phase. Results are only set if the phase transition is successful. * Note: this method is unconditional when <em>start</em> is null. * * @param jobID * @param start * @param end * @param error * @param date * @return the resulting phase or null if the the transition was not successful. * @throws JobNotFoundException * @throws JobPersistenceException * @throws TransientException */ public ExecutionPhase set(String jobID, ExecutionPhase start, ExecutionPhase end, ErrorSummary error, Date date) throws JobNotFoundException, JobPersistenceException, TransientException { log.debug("set: " + jobID + "," + start + "," + end + ", <error>," + date); return set(jobID, start, end, error, null, date); }
/** * Conditionally set the phase from <em>start</em> to <em>end</em>. The transition is * successful IFF the current phase is equal to the starting phase. * * @param jobID * @param start * @param end * @param date * @return the resulting phase or null if the the transition was not successful. * @throws JobNotFoundException * @throws JobPersistenceException * @throws TransientException */ public ExecutionPhase set(String jobID, ExecutionPhase start, ExecutionPhase end, Date date) throws JobNotFoundException, JobPersistenceException, TransientException { log.debug("set: " + jobID + "," + start + "," + end + "," + date); return set(jobID, start, end, null, null, date); }
/** * Conditionally set the phase from <em>start</em> to <em>end</em> and set the * results. The transition is successful IFF the current phase is equal to the * starting phase. Results are only set if the phase transition is successful. * Note: this method is unconditional when <em>start</em> is null. * * @param jobID * @param start * @param end * @param date * @param results * @return the resulting phase or null if the the transition was not successful. * @throws JobNotFoundException * @throws JobPersistenceException * @throws TransientException */ public ExecutionPhase set(String jobID, ExecutionPhase start, ExecutionPhase end, List<Result> results, Date date) throws JobNotFoundException, JobPersistenceException, TransientException { log.debug("set: " + jobID + "," + start + "," + end + ", <results>," + date); return set(jobID, start, end, null, results, date); }
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 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); } }
/** * 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); }