org.jmythapi.protocol.response.impl
Class MemStats

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<IMemStats.Props>
          extended by org.jmythapi.protocol.response.impl.MemStats
All Implemented Interfaces:
Cloneable, IPropertyAware<IMemStats.Props>, IVersionable, ISendable, IMemStats, IMythResponse<IMemStats.Props>

public class MemStats
extends AMythResponse<IMemStats.Props>
implements IMemStats


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.IMemStats
IMemStats.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
MemStats(IMythPacket packet)
           
 
Method Summary
 int getFreeRamMB()
          Gets the total amount of free physical and swap memory in MB.
 int getFreeVmMB()
          Gets the total amount of free swap space in MB.
 int getTotalRamMB()
          Gets the total amount of available physical and swap memory in MB.
 int getTotalVmMB()
          Gets the total amount of available swap space in MB.
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.IVersionable
getVersionNr
 
Methods inherited from interface org.jmythapi.IPropertyAware
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject
 

Constructor Detail

MemStats

public MemStats(IMythPacket packet)
Method Detail

getTotalRamMB

public int getTotalRamMB()
Description copied from interface: IMemStats
Gets the total amount of available physical and swap memory in MB.

Specified by:
getTotalRamMB in interface IMemStats
Returns:
the available physical and swap memory in MB

getFreeRamMB

public int getFreeRamMB()
Description copied from interface: IMemStats
Gets the total amount of free physical and swap memory in MB.

Specified by:
getFreeRamMB in interface IMemStats
Returns:
the free physical and swap memory in MB

getTotalVmMB

public int getTotalVmMB()
Description copied from interface: IMemStats
Gets the total amount of available swap space in MB.

Specified by:
getTotalVmMB in interface IMemStats
Returns:
the available swap space in MB

getFreeVmMB

public int getFreeVmMB()
Description copied from interface: IMemStats
Gets the total amount of free swap space in MB.

Specified by:
getFreeVmMB in interface IMemStats
Returns:
the free swap space in MB


Copyright © 2008-2013. All Rights Reserved.