@InterfaceAudience.Private public static enum HealthMonitor.State extends Enum<HealthMonitor.State>
Enum Constant and Description |
---|
HEALTH_MONITOR_FAILED
The health monitor itself failed unrecoverably and can
no longer provide accurate information.
|
INITIALIZING
The health monitor is still starting up.
|
SERVICE_HEALTHY
The service is connected and healthy.
|
SERVICE_NOT_RESPONDING
The service is not responding to health check RPCs.
|
SERVICE_UNHEALTHY
The service is running but unhealthy.
|
Modifier and Type | Method and Description |
---|---|
static HealthMonitor.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthMonitor.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthMonitor.State INITIALIZING
public static final HealthMonitor.State SERVICE_NOT_RESPONDING
public static final HealthMonitor.State SERVICE_HEALTHY
public static final HealthMonitor.State SERVICE_UNHEALTHY
public static final HealthMonitor.State HEALTH_MONITOR_FAILED
public static HealthMonitor.State[] values()
for (HealthMonitor.State c : HealthMonitor.State.values()) System.out.println(c);
public static HealthMonitor.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2013 Apache Software Foundation. All rights reserved.