Class MacHardwareAbstractionLayer

java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
oshi.hardware.common.platform.mac.MacHardwareAbstractionLayer
All Implemented Interfaces:
HardwareAbstractionLayer

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

    • MacHardwareAbstractionLayer

      protected MacHardwareAbstractionLayer()
      Default constructor.
  • 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.
    • getBluetoothDevices

      public List<BluetoothDevice> getBluetoothDevices()
      Description copied from interface: HardwareAbstractionLayer
      Instantiates a list of BluetoothDevice objects, representing Bluetooth devices (paired or connected) known to the system.
      Returns:
      A list of BluetoothDevice objects or an empty list if none are present.