java.lang.Object
oshi.driver.linux.proc.DiskStats
Utility to read disk statistics from
/proc/diskstats
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum 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/diskstats
and returns the results.
-
Method Details
-
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 aLong
value.
-