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

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

Introduction

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

Prototype

StepExecutionState FAILED

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

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;
    }/*  w  ww  .  ja v a2 s  . c  o 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 isStepFailed() {
    return StepExecutionState.FAILED.name().equalsIgnoreCase(currentStepState);
}

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  w w . ja  va2 s  . com
    if (StepExecutionState.INTERRUPTED.name().equalsIgnoreCase(currentStepState)) {
        return true;
    }
    if (StepExecutionState.FAILED.name().equalsIgnoreCase(currentStepState)) {
        return true;
    }
    return false;
}