Package org.apache.hadoop.ha
Enum Class HealthMonitor.State
- All Implemented Interfaces:
Serializable,Comparable<HealthMonitor.State>,Constable
- Enclosing class:
- HealthMonitor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe health monitor itself failed unrecoverably and can no longer provide accurate information.The health monitor is still starting up.The service is connected and healthy.The service is not responding to health check RPCs.The service is running but unhealthy. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthMonitor.StateReturns the enum constant of this class with the specified name.static HealthMonitor.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIALIZING
The health monitor is still starting up. -
SERVICE_NOT_RESPONDING
The service is not responding to health check RPCs. -
SERVICE_HEALTHY
The service is connected and healthy. -
SERVICE_UNHEALTHY
The service is running but unhealthy. -
HEALTH_MONITOR_FAILED
The health monitor itself failed unrecoverably and can no longer provide accurate information.
-
-
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 nameNullPointerException- if the argument is null
-