Package com.vmware.vim.binding.vim

Examples of com.vmware.vim.binding.vim.ResourceConfigSpec


         VirtualApp vapp = (VirtualApp)mo;
         ProductInfo[] pInfo = vapp.getVAppConfig().getProduct();
         version = pInfo[0].getVersion();
         fullVersion = pInfo[0].getFullVersion();
      }
      ResourceConfigSpec config = rp.getConfig();
      cpuAlloc = config.getCpuAllocation();
      memAlloc = config.getMemoryAllocation();

      // XXX: The cpuUsgae and memUsgae should really belong
      // to the runtime info. We putting them into configuration category is
      // to temporarily fix bug 865341 in Borealis. Should be refactorred later.
      ResourcePool.RuntimeInfo runtime = rp.getRuntime();
View Full Code Here


   public VcResourcePool createChild(final String name,
         final ResourceAllocationInfo cpuAllocation,
         final ResourceAllocationInfo memAllocation,
         final boolean force) throws Exception
   {
      final ResourceConfigSpec spec = new ResourceConfigSpecImpl(
               null, null, null, cpuAllocation, memAllocation);
      ManagedObjectReference ref =
         VcContext.getTaskMgr().execPseudoTask("ResourcePool.createResourcePool",
            VcEventType.ResourcePoolCreated, getMoRef(),
            new IVcPseudoTaskBody() {
View Full Code Here

            VcEventType.ResourcePoolReconfigured, getMoRef(),
            new IVcPseudoTaskBody() {
         @Override
         public ManagedObjectReference body() throws Exception {
            final ResourcePool rp = getManagedObject();
            ResourceConfigSpec spec = null;
            if (cpuAllocation != null || memAllocation != null) {
               spec = new ResourceConfigSpecImpl(
                     null, null, null, cpuAllocation, memAllocation);
               }
            rp.updateConfig(MoUtil.toURLString(name), spec);
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.vim.ResourceConfigSpec

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.