public enum HealthStatusCode extends Enum<HealthStatusCode>
| Enum Constant and Description |
|---|
DOWN
The server is down.
|
OUT_OF_SERVICE
The server is out of service.
|
UNKNOWN
The server is in an unknown state.
|
UP
The server is up and running.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static HealthStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthStatusCode UP
public static final HealthStatusCode DOWN
public static final HealthStatusCode OUT_OF_SERVICE
public static final HealthStatusCode UNKNOWN
public static HealthStatusCode[] values()
for (HealthStatusCode c : HealthStatusCode.values()) System.out.println(c);
public static HealthStatusCode 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 String toString()
toString in class Enum<HealthStatusCode>Copyright © 2016. All rights reserved.