Example usage for com.amazonaws.services.elasticmapreduce.model StepExecutionState CANCELLED

List of usage examples for com.amazonaws.services.elasticmapreduce.model StepExecutionState CANCELLED

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticmapreduce.model StepExecutionState CANCELLED.

Prototype

StepExecutionState CANCELLED

To view the source code for com.amazonaws.services.elasticmapreduce.model StepExecutionState CANCELLED.

Click Source Link

Usage

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;
}