@BetaApi public static enum ApiService.State extends Enum<ApiService.State>
The ordering of the ApiService.State
enum is defined such that if there is a state transition from
A -> B
then A.compareTo(B) < 0
. N.B. The converse is not true, i.e. if
A.compareTo(B) < 0
then there is not guaranteed to be a valid state transition
A -> B
.
Enum Constant and Description |
---|
FAILED
A service in this state has encountered a problem and may not be operational.
|
NEW
A service in this state is inactive.
|
RUNNING
A service in this state is operational.
|
STARTING
A service in this state is transitioning to
RUNNING . |
STOPPING
A service in this state is transitioning to
TERMINATED . |
TERMINATED
A service in this state has completed execution normally.
|
Modifier and Type | Method and Description |
---|---|
static ApiService.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiService.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiService.State FAILED
public static final ApiService.State NEW
public static final ApiService.State RUNNING
public static final ApiService.State STARTING
RUNNING
.public static final ApiService.State STOPPING
TERMINATED
.public static final ApiService.State TERMINATED
public static ApiService.State[] values()
for (ApiService.State c : ApiService.State.values()) System.out.println(c);
public static ApiService.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