public class WindowsGlobalMemory extends AbstractGlobalMemory
| Constructor and Description |
|---|
WindowsGlobalMemory() |
| Modifier and Type | Method and Description |
|---|---|
long |
getAvailable()
The amount of physical memory currently available, in bytes.
|
long |
getPageSize()
The number of bytes in a memory page
|
PhysicalMemory[] |
getPhysicalMemory()
Physical memory, such as banks of memory.
|
long |
getTotal()
The amount of actual physical memory, in bytes.
|
VirtualMemory |
getVirtualMemory()
Virtual memory, such as a swap file.
|
parsePhysicalMemorySize, toStringpublic long getAvailable()
GlobalMemorypublic long getTotal()
GlobalMemorypublic long getPageSize()
GlobalMemorypublic VirtualMemory getVirtualMemory()
GlobalMemorypublic PhysicalMemory[] getPhysicalMemory()
GlobalMemoryOn Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
getPhysicalMemory in interface GlobalMemorygetPhysicalMemory in class AbstractGlobalMemoryCopyright © 2020. All rights reserved.