Example usage for com.amazonaws.services.elasticmapreduce.model Application setArgs

List of usage examples for com.amazonaws.services.elasticmapreduce.model Application setArgs

Introduction

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

Prototype


public void setArgs(java.util.Collection<String> args) 

Source Link

Document

Arguments for Amazon EMR to pass to the application.

Usage

From source file:org.finra.dm.dao.impl.EmrDaoImpl.java

License:Apache License

/**
 * Converts the given list of {@link EmrClusterDefinitionApplication} into a list of {@link Application}
 * //from   w  w w  .  j ava2s . c  o  m
 * @param emrClusterDefinitionApplications list of {@link EmrClusterDefinitionApplication}
 * @return list {@link Application}
 */
public List<Application> getApplications(
        List<EmrClusterDefinitionApplication> emrClusterDefinitionApplications) {
    List<Application> applications = new ArrayList<>();
    for (EmrClusterDefinitionApplication emrClusterDefinitionApplication : emrClusterDefinitionApplications) {
        Application application = new Application();
        application.setName(emrClusterDefinitionApplication.getName());
        application.setVersion(emrClusterDefinitionApplication.getVersion());
        application.setArgs(emrClusterDefinitionApplication.getArgs());

        List<Parameter> additionalInfoList = emrClusterDefinitionApplication.getAdditionalInfoList();
        if (!CollectionUtils.isEmpty(additionalInfoList)) {
            application.setAdditionalInfo(getMap(additionalInfoList));
        }

        applications.add(application);
    }
    return applications;
}