Package org.jclouds.vcloud.domain.ovf

Examples of org.jclouds.vcloud.domain.ovf.VCloudHardDisk


@Singleton
public class VCloudHardwareBuilderFromResourceAllocations extends HardwareBuilderFromResourceAllocations {
   @Override
   public Volume apply(ResourceAllocationSettingData from) {
      if (from instanceof VCloudHardDisk) {
         VCloudHardDisk vDisk = VCloudHardDisk.class.cast(from);
         return new VolumeImpl(from.getAddressOnParent() + "", Volume.Type.LOCAL, vDisk.getCapacity() / 1024f, null,
                  "0".equals(from.getAddressOnParent()), true);
      } else {
         return super.apply(from);
      }
View Full Code Here


@Singleton
public class VCloudHardwareBuilderFromResourceAllocations extends HardwareBuilderFromResourceAllocations {
   @Override
   public Volume apply(ResourceAllocationSettingData from) {
      if (from instanceof VCloudHardDisk) {
         VCloudHardDisk vDisk = VCloudHardDisk.class.cast(from);
         return new VolumeImpl(from.getAddressOnParent() + "", Volume.Type.LOCAL, vDisk.getCapacity() / 1024f, null,
                  "0".equals(from.getAddressOnParent()), true);
      } else {
         return super.apply(from);
      }
View Full Code Here

@Singleton
public class VCloudHardwareBuilderFromResourceAllocations extends HardwareBuilderFromResourceAllocations {
   @Override
   public Volume apply(ResourceAllocationSettingData from) {
      if (from instanceof VCloudHardDisk) {
         VCloudHardDisk vDisk = VCloudHardDisk.class.cast(from);
         return new VolumeImpl(from.getAddressOnParent() + "", Volume.Type.LOCAL, vDisk.getCapacity() / 1024f, null,
                  "0".equals(from.getAddressOnParent()), true);
      } else {
         return super.apply(from);
      }
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.domain.ovf.VCloudHardDisk

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.