Class DiskStats

java.lang.Object
oshi.driver.linux.proc.DiskStats

@ThreadSafe public final class DiskStats extends Object
Utility to read disk statistics from /proc/diskstats
  • Method Details

    • getDiskStats

      public static Map<String,Map<DiskStats.IoStat,Long>> getDiskStats()
      Reads the statistics in /proc/diskstats and returns the results.
      Returns:
      A map with each disk's name as the key, and an EnumMap as the value, where the numeric values in DiskStats.IoStat are mapped to a Long value.