public static enum ServerInformation.State extends 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(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(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 null