} else { if (exFlow.getExecutableNode(jobId).getType().equals(SPARK_JOB_TYPE)) { jobLinkUrl = this.azkProps.get(ConfigurationKeys.SPARK_HISTORY_SERVER_JOB_URL).replace
final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE; final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE;
final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE; final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE;
@Override public Object eval() { final ExecutableFlow exflow; try { exflow = executorManagerAdapter.getExecutableFlow(this.execId); } catch (final ExecutorManagerException e) { e.printStackTrace(); return Boolean.FALSE; } if (this.jobName != null) { final ExecutableNode job = exflow.getExecutableNode(this.jobName); if (job != null) { return job.getStatus().equals(this.wantedStatus); } else { return Boolean.FALSE; } } else { return exflow.getStatus().equals(this.wantedStatus); } }
Assert.assertNotNull(exFlow.getExecutableNode("joba")); Assert.assertNotNull(exFlow.getExecutableNode("jobb")); Assert.assertNotNull(exFlow.getExecutableNode("jobc")); Assert.assertNotNull(exFlow.getExecutableNode("jobd")); Assert.assertNotNull(exFlow.getExecutableNode("jobe")); Assert.assertFalse(exFlow.getExecutableNode("joba") instanceof ExecutableFlowBase); Assert.assertTrue(exFlow.getExecutableNode("jobb") instanceof ExecutableFlowBase); Assert.assertTrue(exFlow.getExecutableNode("jobc") instanceof ExecutableFlowBase); Assert.assertTrue(exFlow.getExecutableNode("jobd") instanceof ExecutableFlowBase); Assert.assertFalse(exFlow.getExecutableNode("jobe") instanceof ExecutableFlowBase); (ExecutableFlowBase) exFlow.getExecutableNode("jobb"); final ExecutableFlowBase jobcFlow = (ExecutableFlowBase) exFlow.getExecutableNode("jobc"); final ExecutableFlowBase jobdFlow = (ExecutableFlowBase) exFlow.getExecutableNode("jobd");
for (final String jobId : jobIds) { if (!jobId.isEmpty()) { final ExecutableNode node = exFlow.getExecutableNode(jobId); if (node == null) { throw new ExecutorManagerException("Job " + jobId
for (final String jobId : jobIds) { if (!jobId.isEmpty()) { final ExecutableNode node = exFlow.getExecutableNode(jobId); if (node == null) { throw new ExecutorManagerException("Job " + jobId
final Props props = new Props(null, jobFile); props.put("test", "test2"); final ExecutableNode oldNode = flow.getExecutableNode("job10"); oldNode.setStartTime(System.currentTimeMillis()); this.executionJobDao.uploadExecutableNode(oldNode, props);
final ExecutableNode joba = exFlow.getExecutableNode("joba"); final ExecutableFlowBase jobb = (ExecutableFlowBase) (exFlow.getExecutableNode("jobb")); final ExecutableFlowBase jobc = (ExecutableFlowBase) (exFlow.getExecutableNode("jobc")); final ExecutableFlowBase jobd = (ExecutableFlowBase) (exFlow.getExecutableNode("jobd")); final ExecutableNode jobe = exFlow.getExecutableNode("jobe"); assertNotNull(joba, jobb, jobc, jobd, jobe);
} else { if (exFlow.getExecutableNode(jobId).getType().equals(SPARK_JOB_TYPE)) { jobLinkUrl = this.azkProps.get(ConfigurationKeys.SPARK_HISTORY_SERVER_JOB_URL).replace
} else if(type.equals(SlaOption.TYPE_JOB_FINISH)) { String jobName = (String) slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); ExecutableNode node = flow.getExecutableNode(jobName); if(node.getStartTime() < 0) { return Boolean.FALSE; } else if(type.equals(SlaOption.TYPE_JOB_SUCCEED)) { String jobName = (String) slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); ExecutableNode node = flow.getExecutableNode(jobName); if(node.getStartTime() < 0) { return Boolean.FALSE;
ExecutableNode node = flow.getExecutableNode(jobName); if(node.getStartTime() < 0) { return Boolean.FALSE; ExecutableNode node = flow.getExecutableNode(jobName); if(node.getStartTime() < 0) { return Boolean.FALSE;
final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE; final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE;
final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE; final String jobName = (String) this.slaOption.getInfo().get(SlaOption.INFO_JOB_NAME); final ExecutableNode node = flow.getExecutableNode(jobName); if (node.getStartTime() < 0) { return Boolean.FALSE;
@Override public Object eval() { final ExecutableFlow exflow; try { exflow = executorManager.getExecutableFlow(this.execId); } catch (final ExecutorManagerException e) { e.printStackTrace(); return Boolean.FALSE; } if (this.jobName != null) { final ExecutableNode job = exflow.getExecutableNode(this.jobName); if (job != null) { return job.getStatus().equals(this.wantedStatus); } else { return Boolean.FALSE; } } else { return exflow.getStatus().equals(this.wantedStatus); } }
@Override public Object eval() { ExecutableFlow exflow; try { exflow = executorManager.getExecutableFlow(execId); } catch (ExecutorManagerException e) { // TODO Auto-generated catch block e.printStackTrace(); return Boolean.FALSE; } if(jobName != null) { ExecutableNode job = exflow.getExecutableNode(jobName); if(job != null) { return job.getStatus().equals(wantedStatus); } else { return Boolean.FALSE; } } else { return exflow.getStatus().equals(wantedStatus); } }
for (String jobId: jobIds) { if (!jobId.isEmpty()) { ExecutableNode node = exFlow.getExecutableNode(jobId); if (node == null) { throw new ExecutorManagerException("Job " + jobId + " doesn't exist in execution " + exFlow.getExecutionId() + ".");
for (final String jobId : jobIds) { if (!jobId.isEmpty()) { final ExecutableNode node = exFlow.getExecutableNode(jobId); if (node == null) { throw new ExecutorManagerException("Job " + jobId