Package oshi.driver.linux.proc
Enum DiskStats.IoStat
java.lang.Object
java.lang.Enum<DiskStats.IoStat>
oshi.driver.linux.proc.DiskStats.IoStat
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DiskStats.IoStat>,java.lang.constant.Constable
- Enclosing class:
- DiskStats
public static enum DiskStats.IoStat extends java.lang.Enum<DiskStats.IoStat>
Enum corresponding to the fields in the output of
/proc/diskstats-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCARDSThe total number of discards completed successfully.DISCARDS_MERGEDDiscards which are adjacent to each other merged for efficiency.DISCARDS_MSThe total number of milliseconds spent by all discards.DISCARDS_SECTORThe total number of sectors discarded successfully.FLUSHESThe total number of flush requests completed successfully.FLUSHES_MSThe total number of milliseconds spent by all flush requests.IO_MSThe total number of milliseconds spent doing I/Os.IO_MS_WEIGHTEDIncremented at each I/O start, I/O completion, I/O merge, or read of these stats by the number of I/Os in progressIO_QUEUE_LENGTHtimes the number of milliseconds spent doing I/O since the last update of this field.IO_QUEUE_LENGTHIncremented as requests are given to appropriate struct request_queue and decremented as they finish.MAJORThe device major number.MINORThe device minor number.NAMEThe device name.READSThe total number of reads completed successfully.READS_MERGEDReads which are adjacent to each other merged for efficiency.READS_MSThe total number of milliseconds spent by all reads.READS_SECTORThe total number of sectors read successfully.WRITESThe total number of writes completed successfully.WRITES_MERGEDWrites which are adjacent to each other merged for efficiency.WRITES_MSThe total number of milliseconds spent by all writes.WRITES_SECTORThe total number of sectors written successfully. -
Method Summary
Modifier and Type Method Description static DiskStats.IoStatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DiskStats.IoStat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MAJOR
The device major number. -
MINOR
The device minor number. -
NAME
The device name. -
READS
The total number of reads completed successfully. -
READS_MERGED
Reads which are adjacent to each other merged for efficiency. -
READS_SECTOR
The total number of sectors read successfully. -
READS_MS
The total number of milliseconds spent by all reads. -
WRITES
The total number of writes completed successfully. -
WRITES_MERGED
Writes which are adjacent to each other merged for efficiency. -
WRITES_SECTOR
The total number of sectors written successfully. -
WRITES_MS
The total number of milliseconds spent by all writes. -
IO_QUEUE_LENGTH
Incremented as requests are given to appropriate struct request_queue and decremented as they finish. -
IO_MS
The total number of milliseconds spent doing I/Os. -
IO_MS_WEIGHTED
Incremented at each I/O start, I/O completion, I/O merge, or read of these stats by the number of I/Os in progressIO_QUEUE_LENGTHtimes the number of milliseconds spent doing I/O since the last update of this field. -
DISCARDS
The total number of discards completed successfully. -
DISCARDS_MERGED
Discards which are adjacent to each other merged for efficiency. -
DISCARDS_SECTOR
The total number of sectors discarded successfully. -
DISCARDS_MS
The total number of milliseconds spent by all discards. -
FLUSHES
The total number of flush requests completed successfully. -
FLUSHES_MS
The total number of milliseconds spent by all flush requests.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-