Examples of shutdownGuest()


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

         @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

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

               + " is FT primary VM, disable FT before delete it.");
         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
View Full Code Here

Examples of com.vmware.vim.binding.vim.VirtualMachine.shutdownGuest()

               VcEventType.VmPoweredOff, getMoRef(),
               new IVcPseudoTaskBody () {
            @Override
            public ManagedObjectReference body() throws Exception {
               VirtualMachine vm = getManagedObject();
               vm.shutdownGuest();      // Initiates shutdown.
               if (!waitForPowerOff(timeoutMillis)) {
                  throw VcException.GUEST_TIMEOUT();
               }
               return getMoRef();
            }
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.