public static enum ServerInformation.State extends java.lang.Enum<ServerInformation.State>
Enum Constant and Description |
---|
RUNNING
The server is running and handling requests.
|
SHUTDOWN
The server is attempting a graceful halt of operations and will exit (or be killed by the
operating system) soon.
|
STARTUP
The server is starting up, and network connections are not yet being accepted.
|
Modifier and Type | Method and Description |
---|---|
static ServerInformation.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerInformation.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerInformation.State STARTUP
public static final ServerInformation.State RUNNING
public static final ServerInformation.State SHUTDOWN
public static ServerInformation.State[] values()
for (ServerInformation.State c : ServerInformation.State.values()) System.out.println(c);
public static ServerInformation.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 namejava.lang.NullPointerException
- if the argument is null