|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jasmine.vmm.api.VMConfigSpec
public class VMConfigSpec
The VMConfigSpec class is a helper class used to describe the configuration of a virtual machine to be created
Constructor Summary | |
---|---|
VMConfigSpec()
Constructs a VMConfigSpec object |
|
VMConfigSpec(java.lang.String name,
long memorySizeMB,
int numVCPU,
int diskSizeMB,
java.lang.String vmImageUUID)
Constructs a VMConfigSpec object |
|
VMConfigSpec(VMConfigSpec other)
Constructs a VMConfigSpec object as a copy of the argument |
Method Summary | |
---|---|
int |
getDiskSizeMB()
Returns the disk size in MBytes of the virtual machine configuration |
long |
getMemorySizeMB()
Returns the memory size of the virtual machine in MBytes |
java.lang.String |
getName()
Returns the name of virtual machine |
int |
getNumVCPU()
Returns the number of virtual CPUs of the virtual machine configuration |
java.lang.String |
getVmImageUUID()
Returns the image ID of the virtual machine configuration |
void |
setDiskSizeMB(int diskSizeMB)
Sets the disk size in MBytes |
void |
setMemorySizeMB(long memorySizeMB)
Sets the memory size of the virtual machine configuration in MBytes |
void |
setName(java.lang.String name)
Sets the name of the virtual machine |
void |
setNumVCPU(int numVCPU)
Sets the number of virtual CPUs |
void |
setVmImageUUID(java.lang.String diskImageID)
Sets the image ID of the virtual machine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VMConfigSpec(java.lang.String name, long memorySizeMB, int numVCPU, int diskSizeMB, java.lang.String vmImageUUID)
name
- the name of the virtual machinememorySizeMB
- the initial memory allocation in MBytesnumVCPU
- the number of virtual CPUsdiskSizeMB
- the disk size in MBytesvmImageUUID
- the uuid of the VM image that will be used to create
the VMpublic VMConfigSpec(VMConfigSpec other)
other
- original object to copypublic VMConfigSpec()
Method Detail |
---|
public void setName(java.lang.String name)
name
- public void setMemorySizeMB(long memorySizeMB)
memorySizeMB
- public void setNumVCPU(int numVCPU)
numVCPU
- public void setDiskSizeMB(int diskSizeMB)
diskSizeMB
- public void setVmImageUUID(java.lang.String diskImageID)
diskImageID
- public java.lang.String getName()
public long getMemorySizeMB()
public int getNumVCPU()
public int getDiskSizeMB()
public java.lang.String getVmImageUUID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |