use of com.amazonaws.services.elasticmapreduce.model.Configuration in project herd by FINRAOS.
the class EmrHelper method getConfigurations.
/**
* Returns list of EmrClusterInstanceTypeConfiguration
*
* @param configurations AWS configuration object list
*
* @return list of EmrClusterInstanceTypeConfiguration
*/
protected List<EmrClusterInstanceTypeConfiguration> getConfigurations(List<Configuration> configurations) {
List<EmrClusterInstanceTypeConfiguration> emrClusterInstanceTypeConfigurations = null;
if (!CollectionUtils.isEmpty(configurations)) {
emrClusterInstanceTypeConfigurations = new ArrayList<>();
for (Configuration configuration : configurations) {
if (configuration != null) {
EmrClusterInstanceTypeConfiguration emrClusterInstanceTypeConfiguration = new EmrClusterInstanceTypeConfiguration();
emrClusterInstanceTypeConfiguration.setClassification(configuration.getClassification());
emrClusterInstanceTypeConfiguration.setConfigurations(getConfigurations(configuration.getConfigurations()));
emrClusterInstanceTypeConfiguration.setProperties(getParameterList(configuration.getProperties()));
emrClusterInstanceTypeConfigurations.add(emrClusterInstanceTypeConfiguration);
}
}
}
return emrClusterInstanceTypeConfigurations;
}
Aggregations