public void deleteJobOutput(String uuid) throws PersistentException { try { store.deleteResource(pathOfJobOutput(uuid)); if (!isTaskExecutableOutput(uuid)) executableOutputDigestMap.remove(uuid); } catch (IOException e) { logger.error("error delete job:" + uuid, e); throw new PersistentException(e); } }
public void updateJobOutput(ExecutableOutputPO output) throws PersistentException { try { writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); if (!isTaskExecutableOutput(output.getUuid())) executableOutputDigestMap.put(output.getUuid(), output); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public ExecutableOutputPO getJobOutput(String uuid) throws PersistentException { ExecutableOutputPO result = null; try { result = readJobOutputResource(pathOfJobOutput(uuid)); if (result == null) { result = new ExecutableOutputPO(); result.setUuid(uuid); return result; } return result; } catch (IOException e) { logger.error("error get job output id:" + uuid, e); if (e.getCause() instanceof FileNotFoundException) { result = new ExecutableOutputPO(); result.setUuid(uuid); result.setStatus(ExecutableState.SUCCEED.name()); return result; } else { throw new PersistentException(e); } } }
public void addJobOutput(ExecutableOutputPO output) throws PersistentException { try { output.setLastModified(0); writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); if (!isTaskExecutableOutput(output.getUuid())) executableOutputDigestMap.put(output.getUuid(), output); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public void deleteJobOutput(String uuid) throws PersistentException { try { store.deleteResource(pathOfJobOutput(uuid)); } catch (IOException e) { logger.error("error delete job:" + uuid, e); throw new PersistentException(e); } } }
public ExecutableOutputPO getJobOutput(String uuid) throws PersistentException { try { ExecutableOutputPO result = readJobOutputResource(pathOfJobOutput(uuid)); if (result == null) { result = new ExecutableOutputPO(); result.setUuid(uuid); return result; } return result; } catch (IOException e) { logger.error("error get job output id:" + uuid, e); throw new PersistentException(e); } }
public void addJobOutput(ExecutableOutputPO output) throws PersistentException { try { output.setLastModified(0); writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public void updateJobOutput(ExecutableOutputPO output) throws PersistentException { try { final long ts = writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); output.setLastModified(ts); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public void deleteJobOutput(String uuid) throws PersistentException { try { store.deleteResource(pathOfJobOutput(uuid)); } catch (IOException e) { logger.error("error delete job:" + uuid, e); throw new PersistentException(e); } } }
public void deleteJobOutput(String uuid) throws PersistentException { try { store.deleteResource(pathOfJobOutput(uuid)); if (!isTaskExecutableOutput(uuid)) executableOutputDigestMap.remove(uuid); } catch (IOException e) { logger.error("error delete job:" + uuid, e); throw new PersistentException(e); } }
public ExecutableOutputPO getJobOutput(String uuid) throws PersistentException { try { ExecutableOutputPO result = readJobOutputResource(pathOfJobOutput(uuid)); if (result == null) { result = new ExecutableOutputPO(); result.setUuid(uuid); return result; } return result; } catch (IOException e) { logger.error("error get job output id:" + uuid, e); throw new PersistentException(e); } }
public void addJobOutput(ExecutableOutputPO output) throws PersistentException { try { output.setLastModified(0); writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public void updateJobOutput(ExecutableOutputPO output) throws PersistentException { try { final long ts = writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); output.setLastModified(ts); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public void updateJobOutput(ExecutableOutputPO output) throws PersistentException { try { writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); if (!isTaskExecutableOutput(output.getUuid())) executableOutputDigestMap.put(output.getUuid(), output); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }
public ExecutableOutputPO getJobOutput(String uuid) throws PersistentException { ExecutableOutputPO result = null; try { result = readJobOutputResource(pathOfJobOutput(uuid)); if (result == null) { result = new ExecutableOutputPO(); result.setUuid(uuid); return result; } return result; } catch (IOException e) { logger.error("error get job output id:" + uuid, e); if (e.getCause() instanceof FileNotFoundException) { result = new ExecutableOutputPO(); result.setUuid(uuid); result.setStatus(ExecutableState.SUCCEED.name()); return result; } else { throw new PersistentException(e); } } }
public void addJobOutput(ExecutableOutputPO output) throws PersistentException { try { output.setLastModified(0); writeJobOutputResource(pathOfJobOutput(output.getUuid()), output); if (!isTaskExecutableOutput(output.getUuid())) executableOutputDigestMap.put(output.getUuid(), output); } catch (IOException e) { logger.error("error update job output id:" + output.getUuid(), e); throw new PersistentException(e); } }