Enum Class HealthMonitor.State

java.lang.Object
java.lang.Enum<HealthMonitor.State>
org.apache.hadoop.ha.HealthMonitor.State
All Implemented Interfaces:
Serializable, Comparable<HealthMonitor.State>, Constable
Enclosing class:
HealthMonitor

@Private public static enum HealthMonitor.State extends Enum<HealthMonitor.State>
  • Enum Constant Details

    • INITIALIZING

      public static final HealthMonitor.State INITIALIZING
      The health monitor is still starting up.
    • SERVICE_NOT_RESPONDING

      public static final HealthMonitor.State SERVICE_NOT_RESPONDING
      The service is not responding to health check RPCs.
    • SERVICE_HEALTHY

      public static final HealthMonitor.State SERVICE_HEALTHY
      The service is connected and healthy.
    • SERVICE_UNHEALTHY

      public static final HealthMonitor.State SERVICE_UNHEALTHY
      The service is running but unhealthy.
    • HEALTH_MONITOR_FAILED

      public static final HealthMonitor.State HEALTH_MONITOR_FAILED
      The health monitor itself failed unrecoverably and can no longer provide accurate information.
  • Method Details

    • values

      public static HealthMonitor.State[] 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

      public static HealthMonitor.State valueOf(String name)
      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