public enum ClusterHealthStatus extends java.lang.Enum<ClusterHealthStatus> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Method and Description |
|---|---|
static ClusterHealthStatus |
fromString(java.lang.String status) |
static ClusterHealthStatus |
fromValue(byte value) |
static ClusterHealthStatus |
readFrom(StreamInput in)
Read from a stream.
|
byte |
value() |
static ClusterHealthStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClusterHealthStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final ClusterHealthStatus GREEN
public static final ClusterHealthStatus YELLOW
public static final ClusterHealthStatus RED
public static ClusterHealthStatus[] values()
for (ClusterHealthStatus c : ClusterHealthStatus.values()) System.out.println(c);
public static ClusterHealthStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte value()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic static ClusterHealthStatus readFrom(StreamInput in) throws java.io.IOException
java.lang.IllegalArgumentException - if the value is unrecognizedjava.io.IOExceptionpublic static ClusterHealthStatus fromValue(byte value) throws java.io.IOException
java.io.IOExceptionpublic static ClusterHealthStatus fromString(java.lang.String status)