Package com.vmware.aurora.vc.VcTaskMgr

Examples of com.vmware.aurora.vc.VcTaskMgr.IVcPseudoTaskBody


   @Override
   public boolean shutdownGuest(final long timeoutMillis) throws Exception {
      try {
         VcContext.getTaskMgr().execPseudoTask("VirtualMachine.shutDownGuest",
               VcEventType.VmPoweredOff, getMoRef(),
               new IVcPseudoTaskBody () {
            @Override
            public ManagedObjectReference body() throws Exception {
               VirtualMachine vm = getManagedObject();
               vm.shutdownGuest();      // Initiates shutdown.
               if (!waitForPowerOff(timeoutMillis)) {
View Full Code Here


      final ResourceConfigSpec spec = new ResourceConfigSpecImpl(
               null, null, null, cpuAllocation, memAllocation);
      ManagedObjectReference ref =
         VcContext.getTaskMgr().execPseudoTask("ResourcePool.createResourcePool",
            VcEventType.ResourcePoolCreated, getMoRef(),
            new IVcPseudoTaskBody() {
         @Override
         public final ManagedObjectReference body() throws Exception {
            final ResourcePool rp = getManagedObject();
            ManagedObjectReference child = null;
            //at least execute once
View Full Code Here

   public void updateConfig(final String name,
         final ResourceAllocationInfo cpuAllocation,
         final ResourceAllocationInfo memAllocation) throws Exception {
      VcContext.getTaskMgr().execPseudoTask("ResourcePool.updateConfig",
            VcEventType.ResourcePoolReconfigured, getMoRef(),
            new IVcPseudoTaskBody() {
         @Override
         public ManagedObjectReference body() throws Exception {
            final ResourcePool rp = getManagedObject();
            ResourceConfigSpec spec = null;
            if (cpuAllocation != null || memAllocation != null) {
View Full Code Here

TOP

Related Classes of com.vmware.aurora.vc.VcTaskMgr.IVcPseudoTaskBody

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.