org.jmythapi.protocol.response
Interface IMemStats

All Superinterfaces:
Cloneable, IPropertyAware<IMemStats.Props>, IVersionable
All Known Implementing Classes:
MemStats

public interface IMemStats
extends IVersionable, IPropertyAware<IMemStats.Props>

An interface to get the memory uage of a MythTV backend.

This interface represents the response to an IBackend.queryMemStats request.
This interface is property-aware. See the properties-list for all properties of this interface.

A response example:

<0>TOTAL_RAM_MB: 1000 | <1>FREE_RAM_MB: 13 | <2>TOTAL_VM_MB: 3820 | <3>FREE_VM_MB: 3704

See Also:
IBackend.queryMemStats(), QUERY_MEMSTATS

Nested Class Summary
static class IMemStats.Props
          The properties of an IMemStats response.
 
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 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
 

Method Detail

getTotalRamMB

int getTotalRamMB()
Gets the total amount of available physical and swap memory in MB.

Returns:
the available physical and swap memory in MB

getFreeRamMB

int getFreeRamMB()
Gets the total amount of free physical and swap memory in MB.

Returns:
the free physical and swap memory in MB

getTotalVmMB

int getTotalVmMB()
Gets the total amount of available swap space in MB.

Returns:
the available swap space in MB

getFreeVmMB

int getFreeVmMB()
Gets the total amount of free swap space in MB.

Returns:
the free swap space in MB


Copyright © 2008-2013. All Rights Reserved.