Examples of ApiConfigGroupConfiguration


Examples of com.vmware.bdd.plugin.ambari.api.model.cluster.ApiConfigGroupConfiguration

               ApiConfigGroup confGroup = serviceToGroup.get(serviceName);
               if (confGroup == null) {
                  confGroup = createConfigGroup(clusterDef, nodeDef, serviceName);
                  serviceToGroup.put(serviceName, confGroup);
               }
               ApiConfigGroupConfiguration sameType = null;
               for (ApiConfigGroupConfiguration config : confGroup
                     .getApiConfigGroupInfo().getDesiredConfigs()) {
                  if (config.getType().equals(type)) {
                     sameType = config;
                     break;
                  }
               }
               if (sameType == null) {
                  sameType =
                        createApiConfigGroupConf(i, type, serviceName,
                              confGroup);
               }
               Map<String, String> property = (Map<String, String>)map.get(type);
               sameType.getProperties().putAll(property);
            }
         }
         configGroups.addAll(serviceToGroup.values());
      }
      if (configGroups.isEmpty()) {
View Full Code Here

Examples of com.vmware.bdd.plugin.ambari.api.model.cluster.ApiConfigGroupConfiguration

      apiManager.createConfigGroups(clusterDef.getName(), configGroups);
   }

   private ApiConfigGroupConfiguration createApiConfigGroupConf(int i,
         String type, String serviceName, ApiConfigGroup confGroup) {
      ApiConfigGroupConfiguration sameType;
      sameType = new ApiConfigGroupConfiguration();
      sameType.setType(type);
      sameType.setTag(serviceName + i);
      sameType.setProperties(new HashMap<String, String>());
      i ++;
      confGroup.getApiConfigGroupInfo().getDesiredConfigs()
            .add(sameType);
      return sameType;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.