protected void processClusters(StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType) {
    final Map<String, Cluster> clusterMap = clusters.getClusters();

    if (clusterMap != null) {
      for (Cluster cluster : clusterMap.values()) {
        try {
          LOGGER.info("Managing the {} configuration for the cluster named '{}'", stackAdvisorRequestType.toString(), cluster.getClusterName());
          processCluster(cluster, stackAdvisorRequestType);
        } catch (AmbariException | StackAdvisorException e) {
          LOGGER.warn("Failed to update the {} for the cluster named '{}': ", stackAdvisorRequestType.toString(), cluster.getClusterName(), e);
        }
      }
    }
  }
Build the stack advisor request, call the stack advisor, then automatically
handle the recommendations on all clusters that managed by Ambari.

@param stackAdvisorRequestType
         the stack advisor request type
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AmbariServerStackAdvisorAwareConfigurationHandler.java