ewe.sys
Class MemoryStatus

java.lang.Object
  extended byewe.sys.MemoryStatus

public class MemoryStatus
extends Object

This is provided on some platforms that allow it and only some of the fields will be relevant on some. It is modeled after the Win32/WinCE MEMORYSTATUS structure.


Field Summary
 int availablePhysical
          The available number of bytes in physical memory.
 int availableVirtual
          The available number of virtual memory bytes.
 int memoryLoad
          This will be a value from 0 to 100 indicating a percentage of used memory.
 int totalPhysical
          The total number of bytes in physical memory.
 int totalVirtual
          The total number of virtual memory bytes.
 
Constructor Summary
MemoryStatus()
           
 
Method Summary
 MemoryStatus getChange()
          This will return a MemoryStatus that has the difference in the memory values of this MemoryStatus object, and the current memory values as reported by the system.
 boolean refresh()
          Refresh the values in this MemoryStatus with a new values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

memoryLoad

public int memoryLoad
This will be a value from 0 to 100 indicating a percentage of used memory.


totalPhysical

public int totalPhysical
The total number of bytes in physical memory.


availablePhysical

public int availablePhysical
The available number of bytes in physical memory.


totalVirtual

public int totalVirtual
The total number of virtual memory bytes.


availableVirtual

public int availableVirtual
The available number of virtual memory bytes.

Constructor Detail

MemoryStatus

public MemoryStatus()
Method Detail

getChange

public MemoryStatus getChange()
This will return a MemoryStatus that has the difference in the memory values of this MemoryStatus object, and the current memory values as reported by the system.

Returns:
A new MemoryStatus or null if the current memory status cannot be determined.

refresh

public boolean refresh()
Refresh the values in this MemoryStatus with a new values.