public static enum ServerStatus.Status extends Enum<ServerStatus.Status>
Enum Constant and Description |
---|
EXCEPTION
Server status check failed on IO Exception.
|
FAILED
Server status check failed with
FAILED result. |
FATAL
Server status check failed because of unexpected fatal issue.
|
INVALID
Server status check failed because of invalid arguments.
|
SUCCESS
Server status check passed.
|
TIMEOUT
Server status check failed on timeout.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Convert
Status value to String . |
static ServerStatus.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerStatus.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerStatus.Status SUCCESS
public static final ServerStatus.Status FAILED
FAILED
result.public static final ServerStatus.Status TIMEOUT
public static final ServerStatus.Status EXCEPTION
public static final ServerStatus.Status INVALID
public static final ServerStatus.Status FATAL
public static ServerStatus.Status[] values()
for (ServerStatus.Status c : ServerStatus.Status.values()) System.out.println(c);
public static ServerStatus.Status 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()
Status
value to String
.
toString
in class Enum<ServerStatus.Status>
String
representation of the value
of this object.Copyright © 2013. All Rights Reserved.