|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<State>
com.orbitz.consul.model.State
public enum State
Represents the possible Check states.
| Enum Constant Summary | |
|---|---|
ANY
|
|
FAIL
|
|
PASS
|
|
UNKNOWN
|
|
WARN
|
|
| Method Summary | |
|---|---|
static State |
fromName(java.lang.String name)
Returns the appropriate State given the
name. |
java.lang.String |
getName()
Retrieve the name value for the Consul check API endpoints. |
java.lang.String |
getPath()
Retrieve the path value for the Consul check API endpoints. |
static State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static State[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final State PASS
public static final State WARN
public static final State FAIL
public static final State ANY
public static final State UNKNOWN
| Method Detail |
|---|
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static State 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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getPath()
public java.lang.String getName()
public static State fromName(java.lang.String name)
State given the
name.
name - The state name e.g. "passing".
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||