Package org.metricshub.ipmi.client
Enum SensorStatus
- All Implemented Interfaces:
Serializable,Comparable<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 Summary
Enum ConstantsEnum ConstantDescriptionThe reading is at or beyond a critical threshold.The reading is at or beyond a non-critical threshold.The reading is at or beyond a non-recoverable threshold.The reading is within the thresholds, or the discrete sensor answers.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 Summary
Modifier and TypeMethodDescriptionstatic SensorStatusReturns the enum constant of this type with the specified name.static SensorStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
The reading is within the thresholds, or the discrete sensor answers. -
NON_CRITICAL
The reading is at or beyond a non-critical threshold. -
CRITICAL
The reading is at or beyond a critical threshold. -
NON_RECOVERABLE
The reading is at or beyond a non-recoverable threshold. -
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
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-