public enum ServiceState extends java.lang.Enum<ServiceState>
| Enum Constant and Description |
|---|
IN_SERVICE
NEXT POSSIBLE STATE: STOPPING, RESTARTING_STOPPING
PREVIOUS STATE : STARTED [2] |
RESTARTING_STARTING
NEXT POSSIBLE STATE: STARTED
PREVIOUS STATE : RESTARTING_STOPPING [6] |
RESTARTING_STOPPING
NEXT POSSIBLE STATE: RESTARTING_STARTING
PREVIOUS STATE : STARTED, IN_SERVICE [5] |
STARTED
NEXT POSSIBLE STATE: STOPPING, RESTARTING_STOPPING
PREVIOUS STATE : STARTING [1] |
STARTING
NEXT POSSIBLE STATE: STARTED, STOPPING
PREVIOUS STATE : STOPPED [0] |
STOPPED
NEXT POSSIBLE STATE: STARTING
PREVIOUS STATE : STOPPING [4] |
STOPPING
NEXT POSSIBLE STATE: STOPPED, STARTING
PREVIOUS STATE : STARTED [3] |
| Modifier and Type | Field and Description |
|---|---|
static ServiceState[] |
INFLIGHT_STATES
states in flight/ in transition
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStateChangePossible(ServiceState nextState) |
ServiceState |
next() |
static ServiceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState STARTING
public static final ServiceState STARTED
public static final ServiceState IN_SERVICE
public static final ServiceState STOPPING
public static final ServiceState STOPPED
public static final ServiceState RESTARTING_STOPPING
public static final ServiceState RESTARTING_STARTING
public static ServiceState[] INFLIGHT_STATES
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 nullpublic boolean isStateChangePossible(ServiceState nextState)
nextState - the next desired statepublic ServiceState next()
Copyright © 2017-2018 Cinovo AG. All Rights Reserved.