List of usage examples for com.amazonaws.services.elasticmapreduce.model StepExecutionState CANCELLED
StepExecutionState CANCELLED
To view the source code for com.amazonaws.services.elasticmapreduce.model StepExecutionState CANCELLED.
Click Source Link
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
@Override public boolean isStepRunning() { if (StepExecutionState.CANCELLED.name().equalsIgnoreCase(currentStepState)) { return false; }//from ww w.j a v a2s.co m if (StepExecutionState.INTERRUPTED.name().equalsIgnoreCase(currentStepState)) { return false; } if (StepExecutionState.COMPLETED.name().equalsIgnoreCase(currentStepState)) { return false; } if (StepExecutionState.FAILED.name().equalsIgnoreCase(currentStepState)) { return false; } return true; }
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
@Override public boolean isStepNotSuccess() { currentStepState = getActualStepState(); if (StepExecutionState.CANCELLED.name().equalsIgnoreCase(currentStepState)) { return true; }/* ww w. j a va 2s.c o m*/ if (StepExecutionState.INTERRUPTED.name().equalsIgnoreCase(currentStepState)) { return true; } if (StepExecutionState.FAILED.name().equalsIgnoreCase(currentStepState)) { return true; } return false; }