Class MacHardwareAbstractionLayer

java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
oshi.hardware.platform.mac.MacHardwareAbstractionLayer
All Implemented Interfaces:
HardwareAbstractionLayer
Direct Known Subclasses:
MacHardwareAbstractionLayerFFM, MacHardwareAbstractionLayerJNA

@ThreadSafe public abstract class MacHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer
MacHardwareAbstractionLayer class.
  • Constructor Details

    • MacHardwareAbstractionLayer

      public MacHardwareAbstractionLayer()
  • Method Details

    • getLogicalVolumeGroups

      public List<LogicalVolumeGroup> getLogicalVolumeGroups()
      Description copied from interface: HardwareAbstractionLayer
      Instantiates a list of LogicalVolumeGroup objects, representing a storage pool or group of devices, partitions, volumes, or other implementation specific means of file storage.

      If not yet implemented or if logical volume groups do not exist, returns an empty list.

      Currently implemented for Linux (LVM2), macOS (Core Storage), and Windows (Storage Spaces).

      Returns:
      A list of LogicalVolumeGroup objects or an empty list if none are present.
    • getSoundCards

      public List<SoundCard> getSoundCards()
      Description copied from interface: HardwareAbstractionLayer
      Instantiates a list of SoundCard objects, representing the Sound cards.
      Returns:
      A list of SoundCard objects or an empty list if none are present.
    • getPrinters

      public List<Printer> getPrinters()
      Description copied from interface: HardwareAbstractionLayer
      Instantiates a list of Printer objects, representing printers.
      Returns:
      A list of Printer objects or an empty list if none are present.