com.redhat.rhn.domain.action.virtualization
Class VirtualizationSetMemoryAction
java.lang.Object
com.redhat.rhn.domain.BaseDomainHelper
com.redhat.rhn.domain.action.Action
com.redhat.rhn.domain.action.virtualization.BaseVirtualizationAction
com.redhat.rhn.domain.action.virtualization.VirtualizationSetMemoryAction
- All Implemented Interfaces:
- java.io.Serializable
public class VirtualizationSetMemoryAction
- extends BaseVirtualizationAction
VirtualizationSetMemoryAction - Class representing TYPE_VIRTUALIZATION_SET_MEMORY.
Make sure the 'memory' field is in kilobytes.
- See Also:
- Serialized Form
|
Method Summary |
void |
extractParameters(java.util.Map context)
Extract any required parameters from the provided context and call the
appropriate setters. |
java.lang.Integer |
getMemory()
Guest the guest memory. |
void |
setMemory(java.lang.Integer memoryIn)
Set the memory to be appied to the guest. |
| Methods inherited from class com.redhat.rhn.domain.action.Action |
addServerAction, equals, getActionType, getAgeString, getArchived, getCreated, getEarliestAction, getFailedCount, getFormatter, getId, getModified, getName, getOrg, getPrerequisite, getSchedulerUser, getServerActions, getSuccessfulCount, getVersion, hashCode, setActionType, setAgeString, setArchived, setCreated, setEarliestAction, setId, setModified, setName, setOrg, setPrerequisite, setSchedulerUser, setServerActions, setVersion, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SET_MEMORY_STRING
public static final java.lang.String SET_MEMORY_STRING
- See Also:
- Constant Field Values
VirtualizationSetMemoryAction
public VirtualizationSetMemoryAction()
setMemory
public void setMemory(java.lang.Integer memoryIn)
- Set the memory to be appied to the guest. This is KILOBYTES
- Parameters:
memoryIn - New setting for guest memory.
getMemory
public java.lang.Integer getMemory()
- Guest the guest memory. KILOBYTES
- Returns:
- The guest memory setting.
extractParameters
public void extractParameters(java.util.Map context)
- Extract any required parameters from the provided context and call the
appropriate setters.
- Overrides:
extractParameters in class BaseVirtualizationAction
- Parameters:
context - Map of strings