Search in sources :

Example 1 with ApiConfigFileList2

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;
}
Also used : ArrayList(java.util.ArrayList) ApiConfigFile(org.apache.ambari.api.model.ApiConfigFile) ApiConfigFileList2(org.apache.ambari.api.model.ApiConfigFileList2)

Example 2 with ApiConfigFileList2

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;
}
Also used : ArrayList(java.util.ArrayList) ApiConfigFile(org.apache.ambari.api.model.ApiConfigFile) ApiConfigFileList2(org.apache.ambari.api.model.ApiConfigFileList2)

Aggregations

ArrayList (java.util.ArrayList)2 ApiConfigFile (org.apache.ambari.api.model.ApiConfigFile)2 ApiConfigFileList2 (org.apache.ambari.api.model.ApiConfigFileList2)2