Examples of instancePerHost()


Examples of com.vmware.bdd.apitypes.NodeGroupCreate.instancePerHost()

      boolean mixed = vGroup.getNodeGroups().size() > 1;
      Integer vNodeNum = 0;
      // ensure all node groups have the same host number
      if (mixed) {
         NodeGroupCreate primary = vGroup.getPrimaryGroup();
         vNodeNum = primary.getInstanceNum() / primary.instancePerHost();
         AuAssert.check(vNodeNum != null && vNodeNum > 0);

         // slave groups cannot have required host numbers large than the primary group
         for (NodeGroupCreate nodeGroup : vGroup.getNodeGroups()) {
            AuAssert.check(nodeGroup.calculateHostNum() <= vNodeNum);
View Full Code Here

Examples of com.vmware.bdd.apitypes.NodeGroupCreate.instancePerHost()

               && nodeGroup.isStrictReferred()
               && nodeGroup.instancePerHost() != null) {
            NodeGroupCreate referredGroup =
                  cluster.getNodeGroup(nodeGroup.getReferredGroup());
            AuAssert.check(referredGroup != null);
            if (referredGroup.instancePerHost() != null) {
               /*
                *  only put strict associated groups which both has instance_per_host
                *  constraints into one virtual group
                */
               single = false;
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.