public enum ServerState extends Enum<ServerState>
| Enum Constant and Description |
|---|
ACTIVE |
PASSIVE |
SYNCHRONIZING |
UNINITIALIZED |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ServerState |
parse(String state) |
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 UNINITIALIZED
public static final ServerState SYNCHRONIZING
public static final ServerState PASSIVE
public static final ServerState ACTIVE
public static final ServerState UNKNOWN
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 static ServerState parse(String state)
Copyright © 2016. All Rights Reserved.