Package oshi.driver.linux.proc
Class DiskStats
java.lang.Object
oshi.driver.linux.proc.DiskStats
Utility to read disk statistics from
/proc/diskstats-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum corresponding to the fields in the output of/proc/diskstats -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String, Map<DiskStats.IoStat, Long>> Reads the statistics in/proc/diskstatsand returns the results.
-
Method Details
-
getDiskStats
Reads the statistics in/proc/diskstatsand 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.IoStatare mapped to aLongvalue.
-