List of usage examples for com.amazonaws.services.elasticmapreduce.model DescribeStepResult getStep
public Step getStep()
The step details for the requested step identifier.
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
private String getActualStepState() { String stepState = null;//ww w . j a v a 2 s . c om DescribeStepRequest describeStepRequest = new DescribeStepRequest(); describeStepRequest.setClusterId(hadoopJobFlowId); describeStepRequest.setStepId(stepId); DescribeStepResult describeStepResult = emrClient.describeStep(describeStepRequest); if (describeStepResult != null) { stepState = describeStepResult.getStep().getStatus().getState(); } return stepState; }