List of usage examples for com.amazonaws.services.elasticmapreduce.model StepExecutionState INTERRUPTED
StepExecutionState INTERRUPTED
To view the source code for com.amazonaws.services.elasticmapreduce.model StepExecutionState INTERRUPTED.
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 a 2 s.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; }//w ww. j a va 2 s .co m if (StepExecutionState.INTERRUPTED.name().equalsIgnoreCase(currentStepState)) { return true; } if (StepExecutionState.FAILED.name().equalsIgnoreCase(currentStepState)) { return true; } return false; }