|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.domain.BaseDomainHelper
com.redhat.rhn.domain.server.VirtualInstanceInfo
public class VirtualInstanceInfo
VirtualInstanceInfo
| Constructor Summary | |
|---|---|
VirtualInstanceInfo()
|
|
| Method Summary | |
|---|---|
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 wil 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. |
| Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper |
|---|
getCreated, getModified, setCreated, setModified |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualInstanceInfo()
| Method Detail |
|---|
public 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 compare
true if object is a VirtualInstanceInfo and has
the same parent VirtualInstance as this info object.public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||