|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.vm.VM
public class VM
This class represents a virtual machine.
Virtual machines need to have an ID will typically report an OS, and have a list of operating systems that it can be converted to.
The rack and slot information for the VM corresponds to the node index and the VM index in that node.
| Constructor Summary | |
|---|---|
VM(java.lang.String id)
Initializes a new VM with the specified unique ID. |
|
| Method Summary | |
|---|---|
void |
addFlag(VMFlag flag)
Adds a flag associated with this VM |
int |
compareTo(VM o)
|
int |
getDisk()
Returns the amount of configured disk space in MB. |
java.util.Set<VMFlag> |
getFlags()
Gets the flags associated with this VM. |
java.lang.String |
getId()
Returns the unique identifier for the VM. |
java.lang.String |
getJobId()
Gets the id of the job associated with this VM. |
int |
getMemory()
Returns the amount of memory configured in MB. |
java.lang.String |
getNodeId()
Returns the ID of the physical node that the VM is on. |
int |
getNodeIndex()
Returns the index of the node that the VM belongs to. |
java.lang.String |
getOs()
Returns the current operating system of the VM. |
java.util.Set<java.lang.String> |
getOsList()
Returns the list of potential operating systems that the VM could be turned into. |
int |
getProcessors()
Returns the number of virtual processors in the VM. |
int |
getSlot()
Returns the slot of the VM inside a given node. |
NodeState |
getState()
Returns the state of the VM. |
java.lang.String |
getSubstate()
Returns the substate that will give more information about the status of the VM. |
void |
setDisk(int disk)
Sets the amount of configured disk space in MB. |
void |
setFlags(java.util.Set<VMFlag> flags)
Sets the flags associated with this VM. |
void |
setId(java.lang.String id)
Sets the unique identifier for the VM. |
void |
setJobId(java.lang.String jobId)
Sets the id of the job associated with this VM. |
void |
setMemory(int memory)
Sets the amount of configured memory in MB. |
void |
setNodeId(java.lang.String nodeId)
Sets the ID of the physical node that the VM is on. |
void |
setNodeIndex(int nodeIndex)
Sets the index of the node that the VM belongs to. |
void |
setOs(java.lang.String os)
Sets the current operating system of the VM. |
void |
setOsList(java.util.Set<java.lang.String> osList)
Sets the list of potential operating systems that the VM could be turned into. |
void |
setProcessors(int processors)
Sets the number of virtual processors in the VM. |
void |
setSlot(int slot)
Sets the slot of the VM inside a given node. |
void |
setState(NodeState state)
Sets the state of the VM. |
void |
setSubstate(java.lang.String substate)
Sets the substate that will give more information about the status of the VM. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VM(java.lang.String id)
id - the unique ID of the VM.| Method Detail |
|---|
public int getDisk()
public java.lang.String getId()
public int getMemory()
public java.lang.String getNodeId()
public int getNodeIndex()
public java.lang.String getOs()
public java.util.Set<java.lang.String> getOsList()
public int getProcessors()
public int getSlot()
public NodeState getState()
public java.lang.String getSubstate()
public void setDisk(int disk)
disk - the amount of configured disk space in MB.public void setId(java.lang.String id)
id - the unique identifier for the VM.public void setMemory(int memory)
memory - the amount of memory configured in MB.public void setNodeId(java.lang.String nodeId)
nodeId - the ID of the physical node that the VM is on.public void setNodeIndex(int nodeIndex)
nodeIndex - the index of the node that the VM belongs to.public void setOs(java.lang.String os)
os - the current operating system of the VM.public void setOsList(java.util.Set<java.lang.String> osList)
osList - the list of potential operating systems that the VM could be
turned into.public void setProcessors(int processors)
processors - the number of virtual processors in the VM.public void setSlot(int slot)
slot - the slot of the VM inside a given node.public void setState(NodeState state)
state - the state of the VM.public void setSubstate(java.lang.String substate)
substate - the substate that will give more information about the status
of the VM.public void setJobId(java.lang.String jobId)
jobId - the id of the job associated with this VM.public java.lang.String getJobId()
public void setFlags(java.util.Set<VMFlag> flags)
flags - the flags associated with this VMpublic java.util.Set<VMFlag> getFlags()
public void addFlag(VMFlag flag)
flag - a flag associated with this VMpublic int compareTo(VM o)
compareTo in interface java.lang.Comparable<VM>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||