Package com.vmware.aurora.vc

Examples of com.vmware.aurora.vc.VcVirtualMachine.powerOff()


      }
      VcContext.inVcSessionDo(new VcSession<Void>() {
         @Override
         protected Void body() throws Exception {
            if (vmPoweroff) {
               vcVm.powerOff();
            } else {
               if (!vcVm
                     .shutdownGuest(Constants.VM_SHUTDOWN_WAITING_SEC * 1000)) {
                  logger.info("shutdown guest OS failed, power off directly");
                  vcVm.powerOff();
View Full Code Here


               vcVm.powerOff();
            } else {
               if (!vcVm
                     .shutdownGuest(Constants.VM_SHUTDOWN_WAITING_SEC * 1000)) {
                  logger.info("shutdown guest OS failed, power off directly");
                  vcVm.powerOff();
               }
            }
            return null;
         }

View Full Code Here

         }

         @Override
         protected Boolean body() throws Exception {
            if (vm != null && vm.isPoweredOn()) {
               vm.powerOff();
               logger.info("power off vm: " + vm.getName()
                     + " to make cluster creation failed.");
               return true;
            } else {
               return false;
View Full Code Here

         vm.turnOffFT();
      }
      // try guest shut down first, wait for 3 minutes, power it off after time out
      if (vm.isPoweredOn()
            && !vm.shutdownGuest(Constants.VM_FAST_SHUTDOWN_WAITING_SEC * 1000)) {
         vm.powerOff();
      }

      /*
       * TRICK: destroy vm with unaccessible disks will throw exceptions, ignore
       * it and destroy it again.
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.