|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.trmk.vcloud_0_8.domain.VAppConfiguration
public class VAppConfiguration
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 |
---|
public VAppConfiguration()
Method Detail |
---|
public VAppConfiguration changeNameTo(String name)
public VAppConfiguration changeProcessorCountTo(int cpus)
public VAppConfiguration changeMemoryTo(long megabytes)
public VAppConfiguration addDisk(long kilobytes)
public VAppConfiguration deleteDiskWithAddressOnParent(int addressOnParent)
Set<ResourceAllocation> disks = Sets.newLinkedHashSet(vApp.getResourceAllocationByType().get( ResourceType.DISK_DRIVE)); ResourceAllocation lastDisk = disks.last(); VAppConfiguration config = deleteDiskWithAddressOnParent(lastDisk.getAddressOnParent());
public Integer getProcessorCount()
public Long getMemory()
public List<Long> getDisks()
public String getName()
public List<Integer> getDisksToDelete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |