public class VAppConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VAppConfiguration.Builder |
Constructor and Description |
---|
VAppConfiguration() |
Modifier and Type | Method and Description |
---|---|
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() |
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 String getName()
Copyright © 2009-2012 jclouds. All Rights Reserved.