public class VirtualInstanceInfo extends BaseDomainHelper
| Constructor and Description |
|---|
VirtualInstanceInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Two VirtualInstanceInfo objects are considered equal if they share the same parent
virtual instance.
|
java.lang.String |
getName()
Return the name of the virtual instance.
|
java.lang.Integer |
getNumberOfCPUs()
Returns the number of virtual CPUs allocated to the virtual instance.
|
VirtualInstance |
getParent() |
VirtualInstanceState |
getState()
Return the state of the virtual instance, which will be running, stopped, crashed, or
paused.
|
java.lang.Long |
getTotalMemory()
Returns the total memory in KB allocated to the virtual instance.
|
VirtualInstanceType |
getType()
Returns the virtualizations type of the virtual instance, which will be either
Fully Virtualized or Para-Virtualized. |
int |
hashCode() |
void |
setName(java.lang.String newName)
Sets the name of the virtual instance.
|
void |
setNumberOfCPUs(java.lang.Integer cpuCount)
Sets the number of virtual CPUs allocated to the virtual instance.
|
void |
setState(VirtualInstanceState newState)
Changes the state of the virtual instance.
|
void |
setTotalMemory(java.lang.Long memory)
Sets the total memory in KB for the virtual instance.
|
void |
setType(VirtualInstanceType virtType)
Sets the virtualization type of the virtual instance.
|
getCreated, getModified, setCreated, setModified, toStringpublic VirtualInstance getParent()
public java.lang.String getName()
public void setName(java.lang.String newName)
newName - The new namepublic java.lang.Long getTotalMemory()
public void setTotalMemory(java.lang.Long memory)
memory - The total memory in KB.public java.lang.Integer getNumberOfCPUs()
public void setNumberOfCPUs(java.lang.Integer cpuCount)
cpuCount - The number of virtual CPUs allocated to the virtual instance.public VirtualInstanceType getType()
Fully Virtualized or Para-Virtualized.Fully Virtualized or Para-Virtualized.public void setType(VirtualInstanceType virtType)
virtType - The virtualization typepublic VirtualInstanceState getState()
public void setState(VirtualInstanceState newState)
newState - The new state, which is one of running, stopped, crashed, or paused.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The object to comparetrue if object is a VirtualInstanceInfo and has
the same parent VirtualInstance as this info object.public int hashCode()
hashCode in class java.lang.Object