public long getClusterId(String clusterName) throws AmbariException {
    return getController().getClusters().getCluster(clusterName).getClusterId();
  }
Verifies if the given cluster has at least one desired configuration transitioned through
TopologyManager.INITIAL -> .... -> TopologyManager.TOPOLOGY_RESOLVED -> ....
@param clusterId the identifier of the cluster to be checked
@return true if the cluster
ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java