Enum Constant Summary
Enum Constants
Represents the plugged state with a numeric value of 1.
Represents the unplugged state with a numeric value of 0.
Method Summary
All Methods Static Methods Concrete Methods
Interpret the specified state value:
{0, ok, plugged} as Plugged
{1, degraded, failed, 2, unplugged} as Unplugged
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from interface org.sentrysoftware.metricshub.engine.common.helpers.state.IState
getNumericValue
Enum Constant Details
PLUGGED
Represents the plugged state with a numeric value of 1.
UNPLUGGED
Represents the unplugged state with a numeric value of 0.
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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 class has no constant with the specified name
NullPointerException - if the argument is null
interpret
Interpret the specified state value:
{0, ok, plugged} as Plugged
{1, degraded, failed, 2, unplugged} as Unplugged
Parameters:
state - String to be interpreted
Returns:
Optional of LinkStatus