- java.lang.Object
-
- java.lang.Enum<TinyHealth.Status>
-
- net.morimekta.tiny.server.http.TinyHealth.Status
-
- All Implemented Interfaces:
Serializable,Comparable<TinyHealth.Status>
- Enclosing class:
- TinyHealth
public static enum TinyHealth.Status extends Enum<TinyHealth.Status>
The actual healthiness status.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TinyHealth.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static TinyHealth.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final TinyHealth.Status OK
Service is OK.
-
UNHEALTHY
public static final TinyHealth.Status UNHEALTHY
Service is unhealthy.
-
ERROR
public static final TinyHealth.Status ERROR
Error getting status.
-
-
Method Detail
-
values
public static TinyHealth.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TinyHealth.Status c : TinyHealth.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TinyHealth.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-