public enum HostState extends Enum<HostState>
Enum Constant and Description |
---|
HEALTHY
State when the server is receiving heartbeats regularly from the Host
and the state of the Host is healthy
|
HEARTBEAT_LOST
State when the server has not received a heartbeat from the Host in the
configured heartbeat expiry window.
|
INIT
New host state
|
UNHEALTHY
Host is in unhealthy state as reported either by the Host itself or via
any other additional means ( monitoring layer )
|
WAITING_FOR_HOST_STATUS_UPDATES
State when a registration request is received from the Host but
the host has not responded to its status update check.
|
Modifier and Type | Method and Description |
---|---|
static HostState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HostState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostState INIT
public static final HostState WAITING_FOR_HOST_STATUS_UPDATES
public static final HostState HEALTHY
public static final HostState HEARTBEAT_LOST
public static final HostState UNHEALTHY
public static HostState[] values()
for (HostState c : HostState.values()) System.out.println(c);
public static HostState 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 © 2022 Apache Software Foundation. All rights reserved.