Examples of ApiConfigGroup


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

         List<Map<String, Object>> configs = nodeDef.getConfigurations();
         int i = 1;
         for (Map<String, Object> map : configs) {
            for (String type : map.keySet()) {
               String serviceName = configTypeToService.get(type + ".xml");
               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;
                  }
View Full Code Here

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

      return sameType;
   }

   private ApiConfigGroup createConfigGroup(AmClusterDef clusterDef, AmNodeDef nodeDef,
         String serviceName) {
      ApiConfigGroup confGroup;
      confGroup = new ApiConfigGroup();
      ApiConfigGroupInfo info = new ApiConfigGroupInfo();
      confGroup.setApiConfigGroupInfo(info);
      info.setClusterName(clusterDef.getName());
      info.setDescription(serviceName + " configuration");
      info.setGroupName(nodeDef.getName());
      List<ApiHostInfo> hosts = new ArrayList<>();
      ApiHostInfo hostInfo = new ApiHostInfo();
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.