Class SystemMemoryStatus

java.lang.Object
  extended by SystemMemoryStatus

public class SystemMemoryStatus
extends Object

Represents status information of the system.

Use SystemManager to poll and fill the system information into instance of this class.

See Also:
SystemManager.fetchSystemMemoryStatus(SystemMemoryStatus)

Field Summary
 int memoryLoad
          Denotes how loaded the system memory is in percentage.
 long physAvail
          Available (free, unused) physical memory in bytes.
 long physTotal
          Total physical memory in bytes.
 long swapAvail
          Available (free, unused) swap space (pagefile) memory in bytes.
 long swapTotal
          Total swap space (pagefile) memory in bytes.
 long virtualAvail
          Available (free, unused) virtual memory in bytes.
 long virtualTotal
          Total virtual memory in bytes.
 
Constructor Summary
SystemMemoryStatus()
           
 
Method Summary
 void printInB()
           
 void printInKB()
           
 void printInMB()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

memoryLoad

public int memoryLoad
Denotes how loaded the system memory is in percentage. This is usually a ratio of available and total virtual memory.


virtualTotal

public long virtualTotal
Total virtual memory in bytes. Typically a sum of physical and swap memory.


virtualAvail

public long virtualAvail
Available (free, unused) virtual memory in bytes.


physTotal

public long physTotal
Total physical memory in bytes.


physAvail

public long physAvail
Available (free, unused) physical memory in bytes. On Linux this also includes buffer and cache memory.


swapTotal

public long swapTotal
Total swap space (pagefile) memory in bytes.


swapAvail

public long swapAvail
Available (free, unused) swap space (pagefile) memory in bytes.

Constructor Detail

SystemMemoryStatus

public SystemMemoryStatus()
Method Detail

printInMB

public void printInMB()

printInKB

public void printInKB()

printInB

public void printInB()


© 2007 Marius Mikucionis