com.caucho.env.health
Enum HealthStatus
java.lang.Object
java.lang.Enum<HealthStatus>
com.caucho.env.health.HealthStatus
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HealthStatus>
public enum HealthStatus
- extends java.lang.Enum<HealthStatus>
UNKNOWN: Health check has not yet executed or failed to execute properly; status is inconclusive.
OK: Health check reported healthy status. This does not imply recovery.
WARNING: Health check reported warning threshold reached or critical is possible.
CRITICAL: Health check reported critical status; action should be taken.
FATAL: Health check reported fatal; restart expected.
Method Summary |
static HealthStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HealthStatus[] |
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 |
UNKNOWN
public static final HealthStatus UNKNOWN
OK
public static final HealthStatus OK
WARNING
public static final HealthStatus WARNING
CRITICAL
public static final HealthStatus CRITICAL
FATAL
public static final HealthStatus FATAL
values
public static HealthStatus[] 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 (HealthStatus c : HealthStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HealthStatus 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