Class AixHWDiskStore

java.lang.Object
oshi.hardware.common.AbstractHWDiskStore
oshi.hardware.common.platform.unix.aix.AixHWDiskStore
All Implemented Interfaces:
HWDiskStore

@ThreadSafe public abstract class AixHWDiskStore extends AbstractHWDiskStore
Abstract base for AIX HWDiskStore. The updateAttributes() math (rough read/write split from total transfers and block counts, monotonic-increase enforcement) is shared; subclasses fetch the per-disk stats from their respective perfstat driver.
  • Constructor Details

    • AixHWDiskStore

      protected AixHWDiskStore(String name, String model, String serial, long size)
  • Method Details

    • updateAttributes

      public boolean updateAttributes()
      Description copied from interface: HWDiskStore
      Make a best effort to update all the statistics about the drive without needing to recreate the drive list. This method provides for more frequent periodic updates of individual drive statistics but may be less efficient to use if updating all drives. It will not detect if a removable drive has been removed and replaced by a different drive in between method calls.
      Returns:
      True if the update was (probably) successful, false if the disk was not found
    • queryStats

      protected abstract AixHWDiskStore.DiskStats queryStats()
      Looks up this disk's per-disk stats from the subclass's perfstat data source.
      Returns:
      stats POJO, or null if no entry was found for this disk name