public class MemoryInfo
extends java.lang.Object
GlobalMemoryStatusEx
API funciton and MemoryStatusEx
structure
for getting information starting from Windows2000 and higher versions.GlobalMemoryStatus
API funciton and MemoryStatus
structure are being used on earlier versions
of operating systems.Constructor and Description |
---|
MemoryInfo()
Creates new instance of MemoryInfo class.
|
Modifier and Type | Method and Description |
---|---|
long |
getAvailExtendedVirtual()
Size of unreserved and uncommitted memory in the extended portion of the virtual
address space of the calling process, in bytes
|
long |
getAvailPageFile()
Size of available memory to commit, in bytes.
|
long |
getAvailPhys()
Size of physical memory available, in bytes.
|
long |
getAvailVirtual()
Size of unreserved and uncommitted memory in the user mode portion of the virtual
address space of the calling process, in bytes.
|
long |
getMemoryLoad()
Number between 0 and 100 that specifies the approximate percentage of physical memory
that is in use (0 indicates no memory use and 100 indicates full memory use).
|
long |
getTotalPageFile()
Size of the committed memory limit, in bytes.
|
long |
getTotalPhys()
Total size of physical memory, in bytes.
|
long |
getTotalVirtual()
Total size of the user mode portion of the virtual address space of the calling process, in bytes
|
public long getMemoryLoad()
public long getTotalPhys()
public long getAvailPhys()
public long getTotalPageFile()
public long getAvailPageFile()
public long getTotalVirtual()
public long getAvailVirtual()
public long getAvailExtendedVirtual()