Example usage for com.amazonaws.services.elasticmapreduce.model Step getId

List of usage examples for com.amazonaws.services.elasticmapreduce.model Step getId

Introduction

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

Prototype


public String getId() 

Source Link

Document

The identifier of the cluster step.

Usage

From source file:org.finra.dm.service.impl.EmrServiceImpl.java

License:Apache License

/**
 * Builds EmrStep object from the EMR step. Fills in details if verbose=true.
 *//*from  w  w w. j  a v  a 2s . c om*/
private EmrStep buildEmrStepFromAwsStep(Step step, boolean verbose) {
    EmrStep emrStep = new EmrStep();
    emrStep.setId(step.getId());
    emrStep.setStepName(step.getName());
    emrStep.setStatus(step.getStatus().getState());
    if (verbose) {
        emrStep.setJarLocation(step.getConfig().getJar());
        emrStep.setMainClass(step.getConfig().getMainClass());
        emrStep.setScriptArguments(step.getConfig().getArgs());
        emrStep.setContinueOnError(step.getActionOnFailure());
    }
    return emrStep;
}