public enum ServerState extends Enum<ServerState>
Enum Constant and Description |
---|
OFF |
ON |
RESTARTING |
RESTORING |
SAVING |
STARTING |
STOPPING |
UNRECOGNIZED |
UPDATING |
Modifier and Type | Method and Description |
---|---|
static ServerState |
fromValue(String state) |
String |
toString() |
String |
value() |
static ServerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerState ON
public static final ServerState STARTING
public static final ServerState OFF
public static final ServerState STOPPING
public static final ServerState RESTARTING
public static final ServerState SAVING
public static final ServerState RESTORING
public static final ServerState UPDATING
public static final ServerState UNRECOGNIZED
public static ServerState[] values()
for (ServerState c : ServerState.values()) System.out.println(c);
public static ServerState 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 value()
public String toString()
toString
in class Enum<ServerState>
public static ServerState fromValue(String state)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.