com.redhat.rhn.domain.action.virtualization
Class VirtualizationSetMemoryAction

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.action.Action
          extended by com.redhat.rhn.domain.action.virtualization.BaseVirtualizationAction
              extended by 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

Field Summary
static java.lang.String SET_MEMORY_STRING
           
 
Fields inherited from class com.redhat.rhn.domain.action.Action
formatter
 
Constructor Summary
VirtualizationSetMemoryAction()
           
 
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.virtualization.BaseVirtualizationAction
getUuid, setUuid
 
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
 

Field Detail

SET_MEMORY_STRING

public static final java.lang.String SET_MEMORY_STRING
See Also:
Constant Field Values
Constructor Detail

VirtualizationSetMemoryAction

public VirtualizationSetMemoryAction()
Method Detail

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