List of usage examples for com.amazonaws.services.elasticmapreduce.model DescribeStepRequest setStepId
public void setStepId(String stepId)
The identifier of the step to describe.
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
private String getActualStepState() { String stepState = null;//from w w w . j av a2 s. c o m 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; }