Enum DiskStats.IoStat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DiskStats.IoStat>
    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
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DISCARDS
      The total number of discards completed successfully.
      DISCARDS_MERGED
      Discards which are adjacent to each other merged for efficiency.
      DISCARDS_MS
      The total number of milliseconds spent by all discards.
      DISCARDS_SECTOR
      The total number of sectors discarded successfully.
      FLUSHES
      The total number of flush requests completed successfully.
      FLUSHES_MS
      The total number of milliseconds spent by all flush requests.
      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 progress IO_QUEUE_LENGTH times the number of milliseconds spent doing I/O since the last update of this field.
      IO_QUEUE_LENGTH
      Incremented as requests are given to appropriate struct request_queue and decremented as they finish.
      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_MS
      The total number of milliseconds spent by all reads.
      READS_SECTOR
      The total number of sectors read successfully.
      WRITES
      The total number of writes completed successfully.
      WRITES_MERGED
      Writes which are adjacent to each other merged for efficiency.
      WRITES_MS
      The total number of milliseconds spent by all writes.
      WRITES_SECTOR
      The total number of sectors written successfully.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IoStat()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DiskStats.IoStat valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • READS

        public static final DiskStats.IoStat READS
        The total number of reads completed successfully.
      • READS_MERGED

        public static final DiskStats.IoStat READS_MERGED
        Reads which are adjacent to each other merged for efficiency.
      • READS_SECTOR

        public static final DiskStats.IoStat READS_SECTOR
        The total number of sectors read successfully.
      • READS_MS

        public static final DiskStats.IoStat READS_MS
        The total number of milliseconds spent by all reads.
      • WRITES

        public static final DiskStats.IoStat WRITES
        The total number of writes completed successfully.
      • WRITES_MERGED

        public static final DiskStats.IoStat WRITES_MERGED
        Writes which are adjacent to each other merged for efficiency.
      • WRITES_SECTOR

        public static final DiskStats.IoStat WRITES_SECTOR
        The total number of sectors written successfully.
      • WRITES_MS

        public static final DiskStats.IoStat WRITES_MS
        The total number of milliseconds spent by all writes.
      • IO_QUEUE_LENGTH

        public static final DiskStats.IoStat IO_QUEUE_LENGTH
        Incremented as requests are given to appropriate struct request_queue and decremented as they finish.
      • IO_MS

        public static final DiskStats.IoStat IO_MS
        The total number of milliseconds spent doing I/Os.
      • IO_MS_WEIGHTED

        public static final DiskStats.IoStat 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 progress IO_QUEUE_LENGTH times the number of milliseconds spent doing I/O since the last update of this field.
      • DISCARDS

        public static final DiskStats.IoStat DISCARDS
        The total number of discards completed successfully.
      • DISCARDS_MERGED

        public static final DiskStats.IoStat DISCARDS_MERGED
        Discards which are adjacent to each other merged for efficiency.
      • DISCARDS_SECTOR

        public static final DiskStats.IoStat DISCARDS_SECTOR
        The total number of sectors discarded successfully.
      • DISCARDS_MS

        public static final DiskStats.IoStat DISCARDS_MS
        The total number of milliseconds spent by all discards.
      • FLUSHES

        public static final DiskStats.IoStat FLUSHES
        The total number of flush requests completed successfully.
      • FLUSHES_MS

        public static final DiskStats.IoStat FLUSHES_MS
        The total number of milliseconds spent by all flush requests.
    • Constructor Detail

      • IoStat

        private IoStat()
    • Method Detail

      • values

        public static DiskStats.IoStat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DiskStats.IoStat c : DiskStats.IoStat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DiskStats.IoStat valueOf​(java.lang.String name)
        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 name
        java.lang.NullPointerException - if the argument is null