org.jmythapi.protocol.response.impl
Class MemStats
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<IMemStats.Props>
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
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.impl.AData |
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString |
Methods inherited from interface org.jmythapi.IPropertyAware |
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
MemStats
public MemStats(IMythPacket packet)
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.