org.jclouds.trmk.vcloud_0_8.domain
Class VAppConfiguration

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.domain.VAppConfiguration

public class VAppConfiguration
extends Object

Author:
Adrian Cole

Nested Class Summary
static class VAppConfiguration.Builder
           
 
Constructor Summary
VAppConfiguration()
           
 
Method Summary
 VAppConfiguration addDisk(long kilobytes)
          To define a new disk, all you need to define is the size of the disk.
 VAppConfiguration changeMemoryTo(long megabytes)
          number of MB of memory.
 VAppConfiguration changeNameTo(String name)
          The vApp name
 VAppConfiguration changeProcessorCountTo(int cpus)
          the number of virtual CPUs.
 VAppConfiguration deleteDiskWithAddressOnParent(int addressOnParent)
          To remove a disk, you specify its addressOnParent.
 List<Long> getDisks()
           
 List<Integer> getDisksToDelete()
           
 Long getMemory()
           
 String getName()
           
 Integer getProcessorCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VAppConfiguration

public VAppConfiguration()
Method Detail

changeNameTo

public VAppConfiguration changeNameTo(String name)
The vApp name


changeProcessorCountTo

public VAppConfiguration changeProcessorCountTo(int cpus)
the number of virtual CPUs.


changeMemoryTo

public VAppConfiguration changeMemoryTo(long megabytes)
number of MB of memory.


addDisk

public VAppConfiguration addDisk(long kilobytes)
To define a new disk, all you need to define is the size of the disk. The allowed values are a multiple of 1048576.


deleteDiskWithAddressOnParent

public VAppConfiguration deleteDiskWithAddressOnParent(int addressOnParent)
To remove a disk, you specify its addressOnParent. Ex.
 Set<ResourceAllocation> disks = Sets.newLinkedHashSet(vApp.getResourceAllocationByType().get(
          ResourceType.DISK_DRIVE));
 ResourceAllocation lastDisk = disks.last();
 VAppConfiguration config = deleteDiskWithAddressOnParent(lastDisk.getAddressOnParent());
 


getProcessorCount

public Integer getProcessorCount()

getMemory

public Long getMemory()

getDisks

public List<Long> getDisks()

getName

public String getName()

getDisksToDelete

public List<Integer> getDisksToDelete()


Copyright © 2009-2011 jclouds. All Rights Reserved.