@Override public boolean evaluate() throws Exception { final WorkflowJob.Status actualWorkflowJobStatus = wfClient.getJobInfo(jobId).getStatus(); final boolean isWorkflowInState = actualWorkflowJobStatus.equals(expectedWorkflowJobStatus); final WorkflowAction.Status actualWorkflowActionStatus = wfClient.getJobInfo(jobId).getActions().get(1).getStatus(); final boolean isWorkflowActionInState = actualWorkflowActionStatus.equals(expectedWorkflowActionStatus); return isWorkflowInState && isWorkflowActionInState; } }
@Override public boolean didSucceed() throws OozieClientException { try { return oozieClient.getJobInfo( id ).getStatus().equals( WorkflowJob.Status.SUCCEEDED ); } catch ( org.apache.oozie.client.OozieClientException e ) { throw new OozieClientException( e, e.getErrorCode() ); } }
@Override public boolean didSucceed() throws OozieClientException { try { return oozieClient.getJobInfo( id ).getStatus().equals( WorkflowJob.Status.SUCCEEDED ); } catch ( org.apache.oozie.client.OozieClientException e ) { throw new OozieClientException( e, e.getErrorCode() ); } }
public boolean evaluate() throws Exception { WorkflowJobBean wfJob = jpaService .execute(new WorkflowJobGetJPAExecutor(coordAction1_1.getExternalId())); return wfJob.getStatus().equals(Job.Status.KILLED); } });
public boolean evaluate() throws Exception { WorkflowJobBean wfJob = jpaService .execute(new WorkflowJobGetJPAExecutor(coordAction1_4.getExternalId())); return wfJob.getStatus().equals(Job.Status.KILLED); } });
@Override public boolean isRunning() throws OozieClientException { try { return oozieClient.getJobInfo( id ).getStatus().equals( WorkflowJob.Status.RUNNING ); } catch ( org.apache.oozie.client.OozieClientException e ) { throw new OozieClientException( e, e.getErrorCode() ); } }
@Override public boolean isRunning() throws OozieClientException { try { return oozieClient.getJobInfo( id ).getStatus().equals( WorkflowJob.Status.RUNNING ); } catch ( org.apache.oozie.client.OozieClientException e ) { throw new OozieClientException( e, e.getErrorCode() ); } }
public boolean evaluate() throws Exception { WorkflowJobBean wfJob = jpaService .execute(new WorkflowJobGetJPAExecutor(coordAction1_4.getExternalId())); return wfJob.getStatus().equals(Job.Status.SUSPENDED); } });