use of org.apache.ambari.api.model.ApiConfigFileList2 in project tbd-studio-se by Talend.
the class HadoopAmbariCluster method getConfigFiles.
private List<ApiConfigFile> getConfigFiles(Map<String, String> actualConfigFilesVersion) {
List<ApiConfigFile> configFiles = new ArrayList<>();
for (String type : actualConfigFilesVersion.keySet()) {
String version = actualConfigFilesVersion.get(type);
ApiConfigFileList2 configFile = cluster.getConfigsResource().readConfig(type, version);
configFiles.addAll(configFile.getFiles());
}
return configFiles;
}
use of org.apache.ambari.api.model.ApiConfigFileList2 in project components by Talend.
the class HadoopAmbariCluster method getConfigFiles.
private List<ApiConfigFile> getConfigFiles(Map<String, String> actualConfigFilesVersion) {
List<ApiConfigFile> configFiles = new ArrayList<>();
for (String type : actualConfigFilesVersion.keySet()) {
String version = actualConfigFilesVersion.get(type);
ApiConfigFileList2 configFile = cluster.getConfigsResource().readConfig(type, version);
configFiles.addAll(configFile.getFiles());
}
return configFiles;
}
Aggregations