private List<Map<String, Map<String, Map<String, ?>>>>  processConfigurations(ClusterTopology topology) {

    List<Map<String, Map<String, Map<String, ?>>>> configList = new ArrayList<>();

    Configuration configuration = topology.getConfiguration();
    Map<String, Map<String, String>> fullProperties = configuration.getFullProperties();
    Map<String, Map<String, Map<String, String>>> fullAttributes = configuration.getFullAttributes();
    Collection<String> allTypes = ImmutableSet.<String>builder()
      .addAll(fullProperties.keySet())
      .addAll(fullAttributes.keySet())
      .build();
    for (String type : allTypes) {
      Map<String, Map<String, ?>> typeMap = new HashMap<>();
      Map<String, String> properties = fullProperties.get(type);
      if (exportType.include(properties)) {
        typeMap.put("properties", properties);
      }
      if (!fullAttributes.isEmpty()) {
        Map<String, Map<String, String>> attributes = fullAttributes.get(type);
        if (exportType.include(attributes)) {
          typeMap.put("properties_attributes", attributes);
        }
      }

      configList.add(Collections.singletonMap(type, typeMap));
    }

    return configList;
  }
Process cluster scoped configurations.


@return cluster configuration
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/ClusterBlueprintRenderer.java