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

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


   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();
      hostInfo.setHostName(nodeDef.getFqdn());
      hosts.add(hostInfo);
      info.setHosts(hosts);
      info.setTag(serviceName);
      List<ApiConfigGroupConfiguration> desiredConfigs = new ArrayList<>();
      info.setDesiredConfigs(desiredConfigs);
      return confGroup;
   }
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.ambari.api.model.cluster.ApiConfigGroupInfo

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.