List of usage examples for com.amazonaws.services.elasticmapreduce.model ClusterState TERMINATED_WITH_ERRORS
ClusterState TERMINATED_WITH_ERRORS
To view the source code for com.amazonaws.services.elasticmapreduce.model ClusterState TERMINATED_WITH_ERRORS.
Click Source Link
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
/** * Determine if the step flow is in a running state. * * @return true if it is not in COMPLETED or CANCELLED or FAILED or INTERRUPTED, and false otherwise. *//*from ww w .j av a 2 s . c o m*/ @Override public boolean isClusterRunning() { if (ClusterState.WAITING.name().equalsIgnoreCase(currentClusterState)) { return false; } if (ClusterState.TERMINATED.name().equalsIgnoreCase(currentClusterState)) { return false; } if (ClusterState.TERMINATED_WITH_ERRORS.name().equalsIgnoreCase(currentClusterState)) { return false; } return true; }
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
@Override public boolean isClusterTerminated() { return ClusterState.TERMINATED.name().equalsIgnoreCase(currentClusterState) || ClusterState.TERMINATED_WITH_ERRORS.name().equalsIgnoreCase(currentClusterState); }