Package oshi.hardware.common
Class AbstractGlobalMemory
- java.lang.Object
-
- oshi.hardware.common.AbstractGlobalMemory
-
- All Implemented Interfaces:
GlobalMemory
- Direct Known Subclasses:
AixGlobalMemory
,FreeBsdGlobalMemory
,LinuxGlobalMemory
,MacGlobalMemory
,OpenBsdGlobalMemory
,SolarisGlobalMemory
,WindowsGlobalMemory
@ThreadSafe public abstract class AbstractGlobalMemory extends java.lang.Object implements GlobalMemory
Memory info.
-
-
Constructor Summary
Constructors Constructor Description AbstractGlobalMemory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PhysicalMemory>
getPhysicalMemory()
Physical memory, such as banks of memory.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface oshi.hardware.GlobalMemory
getAvailable, getPageSize, getTotal, getVirtualMemory
-
-
-
-
Method Detail
-
getPhysicalMemory
public java.util.List<PhysicalMemory> getPhysicalMemory()
Description copied from interface:GlobalMemory
Physical memory, such as banks of memory.On Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
- Specified by:
getPhysicalMemory
in interfaceGlobalMemory
- Returns:
- A list of PhysicalMemory objects.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-