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

Examples of com.vmware.bdd.plugin.ambari.api.model.stack.ComponentName


         ApiComponentInfo apiTargetComponentInfo =
               apiTargetComponent.getApiComponent();
         ComponentCategory targetComponentCategory =
               ComponentCategory.valueOf(apiTargetComponentInfo
                     .getComponentCategory());
         ComponentName componentName =
               ComponentName.valueOf(apiTargetComponentInfo.getComponentName());
         if (isNamenodeHa(allRoles, unRecogRoles)) {
            if (componentName.isSecondaryNamenode()) {
               continue;
            }
         } else {
            if (componentName.isJournalnode() || componentName.isZkfc()) {
               continue;
            }
         }
         if (targetComponentCategory.isMaster()) {
            masterRoles.add(componentName.toString());
         }
         if (targetComponentCategory.isSlave()) {
            slaveRoles.add(componentName.toString());
         }
      }
      if (componentCategory.isSlave()) {
         for (String masterRole : masterRoles) {
            if (!allRoles.contains(masterRole)) {
View Full Code Here


      int nameNodesCount = 0;
      for (String role : allRoles) {
         if (unRecogRoles != null && unRecogRoles.contains(role)) {
            continue;
         }
         ComponentName componentName = ComponentName.valueOf(role);
         if (componentName.isNamenode()) {
            nameNodesCount++;
         }
      }
      if (nameNodesCount > 1) {
         isNamenodeHa = true;
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.ambari.api.model.stack.ComponentName

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.