Assert.assertEquals(a.getAttempt(), b.getAttempt()); Assert.assertEquals(a.getJobSource(), b.getJobSource()); Assert.assertEquals(a.getPropsSource(), b.getPropsSource()); Assert.assertEquals(a.getInNodes(), a.getInNodes());
public File getJobAttachmentFile(String jobId, int attempt) { ExecutableNode node = flow.getExecutableNodePath(jobId); File path = new File(execDir, node.getJobSource()); String attachmentFileName = JobRunner.createAttachmentFileName(node, attempt); File attachmentFile = new File(path.getParentFile(), attachmentFileName); if (!attachmentFile.exists()) { return null; } return attachmentFile; }
public File getJobLogFile(String jobId, int attempt) { ExecutableNode node = flow.getExecutableNodePath(jobId); File path = new File(execDir, node.getJobSource()); String logFileName = JobRunner.createLogFileName(node, attempt); File logFile = new File(path.getParentFile(), logFileName); if (!logFile.exists()) { return null; } return logFile; }
public File getJobMetaDataFile(String jobId, int attempt) { ExecutableNode node = flow.getExecutableNodePath(jobId); File path = new File(execDir, node.getJobSource()); String metaDataFileName = JobRunner.createMetaDataFileName(node, attempt); File metaDataFile = new File(path.getParentFile(), metaDataFileName); if (!metaDataFile.exists()) { return null; } return metaDataFile; }
private JobRunner createJobRunner(ExecutableNode node) { // Load job file. File path = new File(execDir, node.getJobSource()); JobRunner jobRunner = new JobRunner(node, path.getParentFile(), executorLoader, jobtypeManager); if (watcher != null) { jobRunner.setPipeline(watcher, pipelineLevel); } if (validateUserProxy) { jobRunner.setValidatedProxyUsers(proxyUsers); } jobRunner.setDelayStart(node.getDelayedExecution()); jobRunner.setLogSettings(logger, jobLogFileSize, jobLogNumFiles); jobRunner.addListener(listener); return jobRunner; }
private Props loadJobProps(ExecutableNode node) throws IOException { Props props = null; String source = node.getJobSource(); if (source == null) { return null;