Class MacHWDiskStore

java.lang.Object
oshi.hardware.common.AbstractHWDiskStore
oshi.hardware.common.platform.mac.MacHWDiskStore
All Implemented Interfaces:
HWDiskStore

@ThreadSafe public abstract class MacHWDiskStore extends AbstractHWDiskStore
Base class for macOS HWDiskStore implementations. Subclasses provide platform-specific disk enumeration and statistics updates.
  • Constructor Details

    • MacHWDiskStore

      protected MacHWDiskStore(String name, String model, String serial, long size)
      Creates a MacHWDiskStore with unknown disk type.
      Parameters:
      name - the disk name
      model - the disk model
      serial - the serial number
      size - the disk size in bytes
    • MacHWDiskStore

      protected MacHWDiskStore(String name, String model, String serial, long size, String diskType)
      Creates a MacHWDiskStore.
      Parameters:
      name - the disk name
      model - the disk model
      serial - the serial number
      size - the disk size in bytes
      diskType - the disk type