List of usage examples for com.amazonaws.services.elasticmapreduce.model RunJobFlowRequest getSteps
public java.util.List<StepConfig> getSteps()
A list of steps to run.
From source file:org.finra.dm.dao.impl.MockEmrOperationsImpl.java
License:Apache License
private MockEmrJobFlow createNewCluster(RunJobFlowRequest jobFlowRequest, String status) { MockEmrJobFlow cluster = new MockEmrJobFlow(); cluster.setJobFlowId(getNewJobFlowId()); cluster.setJobFlowName(jobFlowRequest.getName()); cluster.setStatus(status);/*from w w w .j a va 2 s.co m*/ emrClusters.put(cluster.getJobFlowId(), cluster); // Add the steps for (StepConfig stepConfig : jobFlowRequest.getSteps()) { addClusterStep(cluster.getJobFlowId(), stepConfig); } return cluster; }
From source file:org.finra.herd.dao.impl.MockEmrOperationsImpl.java
License:Apache License
private MockEmrJobFlow createNewCluster(RunJobFlowRequest jobFlowRequest, String status, StatusChangeReason reason, StatusTimeline timeline) { MockEmrJobFlow cluster = new MockEmrJobFlow(); cluster.setJobFlowId(getNewJobFlowId()); cluster.setJobFlowName(jobFlowRequest.getName()); cluster.setStatus(status);// w w w.jav a 2 s.co m cluster.setStatusTimeline(timeline); cluster.setStatusChangeReason(reason); emrClusters.put(cluster.getJobFlowId(), cluster); // Add the steps for (StepConfig stepConfig : jobFlowRequest.getSteps()) { addClusterStep(cluster.getJobFlowId(), stepConfig); } return cluster; }