public enum ComponentHealthStatus extends Enum<ComponentHealthStatus>
Enum Constant and Description |
---|
DEGRADED
Mark the given broker's status as degraded.
|
HEALTHY
Mark the given broker's status as healthy.
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ComponentHealthStatus |
forId(byte id) |
static ComponentHealthStatus |
forString(String str) |
byte |
id() |
static ComponentHealthStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentHealthStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentHealthStatus UNKNOWN
public static final ComponentHealthStatus DEGRADED
public static final ComponentHealthStatus HEALTHY
public static ComponentHealthStatus[] values()
for (ComponentHealthStatus c : ComponentHealthStatus.values()) System.out.println(c);
public static ComponentHealthStatus 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 nullpublic byte id()
public static ComponentHealthStatus forId(byte id)
public static ComponentHealthStatus forString(String str)