Package com.vmware.bdd.plugin.clouderamgr.model

Examples of com.vmware.bdd.plugin.clouderamgr.model.CmRoleDef


                  .getRolesResource(apiService.getName()).readRoles()
                  .getRoles();
            logger.debug("Existing roles " + apiRoles);
            for (ApiRole apiRole : apiRoles) {
               for (Iterator<CmRoleDef> ite = roleDefs.iterator(); ite.hasNext(); ) {
                  CmRoleDef roleDef = ite.next();
                  if (apiRole.getHostRef().getHostId().equals(roleDef.getNodeRef())) {
                     ite.remove();
                     result.get(apiService.getName()).add(apiRole);
                     break;
                  }
               }
View Full Code Here


      while (serviceDefIterator.hasNext() || hueService != null) {
         ApiServiceList serviceList = new ApiServiceList();
         try {
            if (hueService != null) {
               CmServiceDef hdfsService = cluster.serviceDefOfType("HDFS");
               CmRoleDef namenodeRole = null;
               for (CmRoleDef roleDef : hdfsService.getRoles()) {
                  if (roleDef.getType().getDisplayName().equals("HDFS_NAMENODE")) {
                     namenodeRole = roleDef;
                     break;
                  }
               }
               if (namenodeRole != null) {
                  // namenode role def should already synced the role ID from CM
                  hueService.addConfig(Constants.CONFIG_HUE__WEBHDFS, namenodeRole.getName());
                  addApiService(serviceList, cluster, hueService, servicesConfigured);
               }
               hueService = null;
            }
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.clouderamgr.model.CmRoleDef

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.