Class WindowsHWDiskStore.DiskStats

java.lang.Object
oshi.hardware.common.platform.windows.WindowsHWDiskStore.DiskStats
Enclosing class:
WindowsHWDiskStore

protected static final class WindowsHWDiskStore.DiskStats extends Object
Maps to store read/write bytes per drive index
  • Constructor Details

    • DiskStats

      public DiskStats()
      Creates an empty DiskStats instance.
  • Method Details

    • getReadMap

      public Map<String,Long> getReadMap()
      Gets the read count map.
      Returns:
      map of disk index to read count
    • getReadByteMap

      public Map<String,Long> getReadByteMap()
      Gets the read bytes map.
      Returns:
      map of disk index to read bytes
    • getWriteMap

      public Map<String,Long> getWriteMap()
      Gets the write count map.
      Returns:
      map of disk index to write count
    • getWriteByteMap

      public Map<String,Long> getWriteByteMap()
      Gets the write bytes map.
      Returns:
      map of disk index to write bytes
    • getQueueLengthMap

      public Map<String,Long> getQueueLengthMap()
      Gets the queue length map.
      Returns:
      map of disk index to queue length
    • getDiskTimeMap

      public Map<String,Long> getDiskTimeMap()
      Gets the disk time map.
      Returns:
      map of disk index to disk time in milliseconds
    • getTimeStamp

      public long getTimeStamp()
      Gets the timestamp when stats were collected.
      Returns:
      the timestamp in milliseconds
    • setTimeStamp

      public void setTimeStamp(long timeStamp)
      Sets the timestamp.
      Parameters:
      timeStamp - the timestamp in milliseconds