Class AbstractGlobalMemory

java.lang.Object
oshi.hardware.common.AbstractGlobalMemory
All Implemented Interfaces:
GlobalMemory
Direct Known Subclasses:
LinuxGlobalMemory

@ThreadSafe public abstract class AbstractGlobalMemory extends Object implements GlobalMemory
Memory info.
  • Constructor Details

    • AbstractGlobalMemory

      public AbstractGlobalMemory()
  • Method Details

    • getPhysicalMemory

      public 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 interface GlobalMemory
      Returns:
      A list of PhysicalMemory objects.
    • toString

      public String toString()
      Overrides:
      toString in class Object