Package com.vmware.vim.binding.impl.vim

Examples of com.vmware.vim.binding.impl.vim.SharesInfoImpl


         @Override
         protected Void body() throws Exception {
            List<VirtualDeviceSpec> deviceSpecs =
                  new ArrayList<VirtualDeviceSpec>();
            for (DeviceId slot : vcVm.getVirtualDiskIds()) {
               SharesInfo shares = new SharesInfoImpl();
               shares.setLevel(Level.valueOf(ioShares.toString().toLowerCase()));
               IOAllocationInfo allocationInfo = new IOAllocationInfoImpl();
               allocationInfo.setShares(shares);
               VirtualDisk vmdk = (VirtualDisk) vcVm.getVirtualDevice(slot);
               vmdk.setStorageIOAllocation(allocationInfo);
               VirtualDeviceSpec spec = new VirtualDeviceSpecImpl();
View Full Code Here


         shareLevel = Level.normal; // TODO: Automatic implies normal? or...
         break;
      default:
         throw CommonException.INTERNAL();
      }
      SharesInfo shares = new SharesInfoImpl(100, shareLevel);
      spec.setCpuAllocation(new ResourceAllocationInfoImpl(
            resourceSchema.cpuReservationMHz, false /* not expandable */, unlimited,
            shares, null));
      spec.setMemoryAllocation(new ResourceAllocationInfoImpl(
            resourceSchema.memReservationSize, false /* not expandable */, unlimited,
View Full Code Here

            getChildVcResourcePool(rp, childRpName);
      if (childVcResourcePool == null) {
         Long reservation = Long.valueOf(0);
         Boolean expandable = Boolean.valueOf(true);
         Long limit = Long.valueOf(-1);
         SharesInfo shares = new SharesInfoImpl();
         if (nodeGroup != null && softManager.isComputeOnlyRoles(nodeGroup.getRoles())) {
            shares.setLevel(SharesInfo.Level.low);
         } else {
            shares.setLevel(SharesInfo.Level.normal);
         }
         ResourceAllocationInfo cpu =
               new ResourceAllocationInfoImpl(reservation, expandable, limit,
                     shares, null);
         ResourceAllocationInfo mem =
View Full Code Here

      VcResourcePool grandChildRP = null;

      Long reservation = Long.valueOf(0);
      Boolean expandable = Boolean.valueOf(false);
      Long limit = Long.valueOf(-1);
      SharesInfo shares = new SharesInfoImpl(100, SharesInfo.Level.custom);
      ResourceAllocationInfo cpu = new ResourceAllocationInfoImpl(
            reservation, expandable, limit, shares, null);
      ResourceAllocationInfo mem = new ResourceAllocationInfoImpl(
            reservation, expandable, limit, shares, null);
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.impl.vim.SharesInfoImpl

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.