com.redhat.rhn.domain.server
Class Ram

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.server.Ram

public class Ram
extends BaseDomainHelper

Represents the amount of ram on a particular server.


Constructor Summary
Ram()
          Represents a servers memory information.
 
Method Summary
 java.lang.Long getId()
          Returns the database id of the ram object.
 long getRam()
          Returns the amount of total ram on a server.
 Server getServer()
          The parent server.
 long getSwap()
          Returns the amount of total swap on a server.
 void setId(java.lang.Long idIn)
          Sets the database id of the ram object.
 void setRam(long ramIn)
          Sets the total amount of ram on a server
 void setServer(Server serverIn)
          Sets the parent server.
 void setSwap(long swapIn)
          Sets the total swap on a server.
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ram

public Ram()
Represents a servers memory information.

Method Detail

getId

public java.lang.Long getId()
Returns the database id of the ram object.

Returns:
Returns the id.

setId

public void setId(java.lang.Long idIn)
Sets the database id of the ram object.

Parameters:
idIn - The id to set.

getRam

public long getRam()
Returns the amount of total ram on a server.

Returns:
the amount of total ram on a server.

setRam

public void setRam(long ramIn)
Sets the total amount of ram on a server

Parameters:
ramIn - The total amount of ram on a server.

getServer

public Server getServer()
The parent server.

Returns:
Returns the server.

setServer

public void setServer(Server serverIn)
Sets the parent server.

Parameters:
serverIn - The server to set.

getSwap

public long getSwap()
Returns the amount of total swap on a server.

Returns:
the amount of total swap on a server.

setSwap

public void setSwap(long swapIn)
Sets the total swap on a server.

Parameters:
swapIn - The total swap on a server.