Class LinuxHWDiskStoreJNA

java.lang.Object
oshi.hardware.common.AbstractHWDiskStore
oshi.hardware.common.platform.linux.LinuxHWDiskStore
oshi.hardware.platform.linux.LinuxHWDiskStoreJNA
All Implemented Interfaces:
oshi.hardware.HWDiskStore

@ThreadSafe public final class LinuxHWDiskStoreJNA extends oshi.hardware.common.platform.linux.LinuxHWDiskStore
JNA-based Linux hard disk implementation.
  • Nested Class Summary

    Nested classes/interfaces inherited from class oshi.hardware.common.platform.linux.LinuxHWDiskStore

    oshi.hardware.common.platform.linux.LinuxHWDiskStore.UdevStat
  • Field Summary

    Fields inherited from class oshi.hardware.common.platform.linux.LinuxHWDiskStore

    BLOCK, DISK, DM_LV_NAME, DM_UUID, DM_VG_NAME, ID_FS_LABEL, ID_FS_TYPE, ID_FS_UUID, ID_MODEL, ID_SERIAL_SHORT, LOGICAL_VOLUME_GROUP, MAJOR, MINOR, PARTITION, SECTORSIZE, SIZE, STAT, UDEV_STAT_LENGTH, UDEV_STAT_ORDERS
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.HWDiskStore>
    Gets the disks on this machine
    boolean
     

    Methods inherited from class oshi.hardware.common.platform.linux.LinuxHWDiskStore

    computeDiskStats, finalizePartitions, getCurrentQueueLength, getDependentNamesFromHoldersDirectory, getMountPointOfDmDevice, getMutablePartitionList, getPartitionNameForDmDevice, getPartitions, getReadBytes, getReads, getTimeStamp, getTransferTime, getWriteBytes, getWrites, readMountsMap, setDiskStats, setPartitionList

    Methods inherited from class oshi.hardware.common.AbstractHWDiskStore

    getModel, getName, getSerial, getSize, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getDisks

      public static List<oshi.hardware.HWDiskStore> getDisks()
      Gets the disks on this machine
      Returns:
      a list of HWDiskStore objects representing the disks
    • updateAttributes

      public boolean updateAttributes()