Package com.vmware.aurora.vc

Examples of com.vmware.aurora.vc.VcCluster


            } else if (rp.getName().contains("rp%5")) {
               System.out.println("got special char");
               rp.updateConfig("rp\\5", null, null);
            }
            System.out.println(rp);
            VcCluster c = rp.getVcCluster();
            AuAssert.check(c.getId().equals(cluster.getId()));
         }
      }
   }
View Full Code Here


   @Test
   public void testVcObjectId() throws Exception {
      for (VcCluster cluster : VcInventory.getClusters()) {
         String id = cluster.getId();
         VcCluster newCluster = VcCache.get(id);
         System.out.println(cluster + ", id=" + newCluster.getId());
         AuAssert.check(cluster.getId().equals(newCluster.getId()));

         for (VcResourcePool rp : cluster.getQualifiedRPs()) {
            VcResourcePool newRp = VcCache.get(rp.getId());
            System.out.println(newRp + ", id=" + newRp.getId());
            AuAssert.check(newRp.getId().equals(rp.getId()));
View Full Code Here

      VcResourcePoolEntity rpEntity = node.getVcRp();
      String vcRPName = "";

      try {
         VcCluster cluster =
               VcResourceUtils.findVcCluster(rpEntity.getVcCluster());
         if (!cluster.getConfig().getDRSEnabled()) {
            logger.debug("DRS disabled for cluster " + rpEntity.getVcCluster()
                  + ", put VM under cluster directly.");
            return cluster.getRootRP();
         }
         if (CommonUtil.isBlank(rpEntity.getVcResourcePool())) {
            vcRPName = clusterRpName + "/" + groupName;
         } else {
            vcRPName =
View Full Code Here

         throw ClusteringServiceException.ENABLE_FT_FAILED(e, vm.getName());
      }
   }

   public static void disableHa(final VcVirtualMachine vm) throws Exception {
      VcCluster cluster = vm.getResourcePool().getVcCluster();
      boolean clusterHa = cluster.getConfig().getHAEnabled();
      if (!clusterHa) {
         // cluster is not ha enabled, don't need to disable ha again
         return;
      }
      try {
View Full Code Here

TOP

Related Classes of com.vmware.aurora.vc.VcCluster

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.