Enum SensorStatus

java.lang.Object
java.lang.Enum<SensorStatus>
org.metricshub.ipmi.client.SensorStatus
All Implemented Interfaces:
Serializable, Comparable<SensorStatus>

public enum SensorStatus extends Enum<SensorStatus>
The status of a sensor: for a threshold sensor, the worst threshold its reading is at or beyond (IPMI 2.0 table 35-15); for a discrete sensor, whether it answers.
  • Enum Constant Details

    • OK

      public static final SensorStatus OK
      The reading is within the thresholds, or the discrete sensor answers.
    • NON_CRITICAL

      public static final SensorStatus NON_CRITICAL
      The reading is at or beyond a non-critical threshold.
    • CRITICAL

      public static final SensorStatus CRITICAL
      The reading is at or beyond a critical threshold.
    • NON_RECOVERABLE

      public static final SensorStatus NON_RECOVERABLE
      The reading is at or beyond a non-recoverable threshold.
    • UNAVAILABLE

      public static final SensorStatus UNAVAILABLE
      The sensor has no reading and no states: the BMC did not answer the reading, or the sensor is not scanned or its reading is not valid yet (Sensor.problem() says which).
  • Method Details

    • values

      public static SensorStatus[] 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

      public static SensorStatus valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null