public void persistInstallStateForUI(String clusterName, String stackName, String stackVersion) {
    String stackInfo = String.format("%s-%s", stackName, stackVersion);
    final ClusterRequest clusterRequest = new ClusterRequest(null, clusterName, "INSTALLED", null, stackInfo, null);

    try {
      RetryHelper.executeWithRetry(new Callable<Object>() {
        @Override
        public Object call() throws Exception {
          getController().updateClusters(Collections.singleton(clusterRequest), null);
          return null;
        }
      });
    } catch (AmbariException e) {
      LOG.error("Unable to set install state for UI", e);
    }
  }
Persist cluster state for the ambari UI.  Setting this state informs that UI that a cluster has been
installed and started and that the monitoring screen for the cluster should be displayed to the user.

@param clusterName  cluster name
@param stackName    stack name
@param stackVersion stack version
ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java