Example usage for com.amazonaws.services.elasticmapreduce.model RunJobFlowRequest getSteps

List of usage examples for com.amazonaws.services.elasticmapreduce.model RunJobFlowRequest getSteps

Introduction

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

Prototype


public java.util.List<StepConfig> getSteps() 

Source Link

Document

A list of steps to run.

Usage

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;
}