Package com.vmware.bdd.plugin.ambari.api.model.bootstrap

Examples of com.vmware.bdd.plugin.ambari.api.model.bootstrap.BootstrapStatus


         boolean success = false;
         boolean allHostsBootstrapped = true;
         ApiBootstrapStatus apiBootstrapStatus =
               apiManager.getBootstrapStatus(apiBootstrapRequest.getRequestId());
         BootstrapStatus bootstrapStatus =
               BootstrapStatus.valueOf(apiBootstrapStatus.getStatus());
         logger.debug("Bootstrap status " + bootstrapStatus);
         if (!bootstrapStatus.isFailedState()) {
            success = true;
         }

         int bootstrapedHostCount =
               apiBootstrapStatus.getApiBootstrapHostStatus().size();
View Full Code Here


               registeredHostsCount++;
            }
         }
      }
      int bootstrapedHostCount = apiBootstrapStatus.getApiBootstrapHostStatus().size();
      BootstrapStatus bootstrapStatus = BootstrapStatus.valueOf(apiBootstrapStatus.getStatus());
      if (bootstrapStatus.isFailedState()
            || (bootstrapStatus.isSucceedState() && bootstrapedHostCount == registeredHostsCount)) {
         if (bootstrapStatus.isFailedState()) {
            Map<String, NodeReport> nodeReports = currentReport.getNodeReports();
            for (String nodeReportKey : nodeReports.keySet()) {
               for (ApiBootstrapHostStatus apiBootstrapHostStatus : apiBootstrapStatus.getApiBootstrapHostStatus()) {
                  if (Constants.HOST_BOOTSTRAP_FAILED.equals(apiBootstrapHostStatus.getStatus())) {
                     NodeReport nodeReport = nodeReports.get(nodeReportKey);
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.ambari.api.model.bootstrap.BootstrapStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.