Class AbstractGlobalMemory
java.lang.Object
oshi.hardware.common.AbstractGlobalMemory
- All Implemented Interfaces:
GlobalMemory
- Direct Known Subclasses:
FreeBsdGlobalMemory, LinuxGlobalMemory, MacGlobalMemory, OpenBsdGlobalMemory, SolarisGlobalMemory, WindowsGlobalMemory
Memory info.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GlobalMemory
getAvailable, getPageSize, getTotal, getVirtualMemoryModifier and TypeMethodDescriptionlongThe amount of physical memory currently available, in bytes.longThe number of bytes in a memory pagelonggetTotal()The amount of actual physical memory, in bytes.Virtual memory, such as a swap file.
-
Constructor Details
-
AbstractGlobalMemory
protected AbstractGlobalMemory()Default constructor.
-
-
Method Details
-
getPhysicalMemory
Description copied from interface:GlobalMemoryPhysical memory, such as banks of memory.On Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
- Specified by:
getPhysicalMemoryin interfaceGlobalMemory- Returns:
- A list of PhysicalMemory objects.
-
toString
-