Class WindowsHWDiskStoreJNA

java.lang.Object
oshi.hardware.common.AbstractHWDiskStore
oshi.hardware.common.platform.windows.WindowsHWDiskStore
oshi.hardware.platform.windows.WindowsHWDiskStoreJNA
All Implemented Interfaces:
oshi.hardware.HWDiskStore

@ThreadSafe public final class WindowsHWDiskStoreJNA extends oshi.hardware.common.platform.windows.WindowsHWDiskStore
Windows hard disk implementation using JNA.
  • Nested Class Summary

    Nested classes/interfaces inherited from class oshi.hardware.common.platform.windows.WindowsHWDiskStore

    oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats, oshi.hardware.common.platform.windows.WindowsHWDiskStore.PartitionMaps
  • Field Summary

    Fields inherited from class oshi.hardware.common.platform.windows.WindowsHWDiskStore

    DEVICE_ID, GUID_BUFSIZE, LABEL_BUFSIZE, PHYSICALDRIVE_PREFIX
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.HWDiskStore>
    Gets the disks on this machine
    protected oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats
     

    Methods inherited from class oshi.hardware.common.platform.windows.WindowsHWDiskStore

    buildPartitionList, getCurrentQueueLength, getIndexFromName, getPartitions, getReadBytes, getReads, getTimeStamp, getTransferTime, getWriteBytes, getWrites, mapDriveToPartition, mapPartitionToLogicalDrive, populateDiskStats, setDiskStats, setPartitionList, updateAttributes

    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

    • queryReadWriteStats

      protected oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats queryReadWriteStats(String index)
      Specified by:
      queryReadWriteStats in class oshi.hardware.common.platform.windows.WindowsHWDiskStore
    • getDisks

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