public enum ApplicationState extends Enum<ApplicationState> implements State<ApplicationState>
| Enum Constant and Description |
|---|
active
The state of applications that have completed initialisation and can accept client requests.
|
failed
The permanent state of applications that has encountered some fatal failure and can no longer accept requests.
|
started
The state of applications that are in the process of initialisation.
|
stopped
The state of applications that have can no longer accept requests, even though they may in the future.
|
| Modifier and Type | Method and Description |
|---|---|
String |
event()
Returns the event corresponding to this state.
|
static ApplicationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnext, remoteFormpublic static final ApplicationState started
public static final ApplicationState active
public static final ApplicationState stopped
public static final ApplicationState failed
public static ApplicationState[] values()
for (ApplicationState c : ApplicationState.values()) System.out.println(c);
public static ApplicationState 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 event()
Stateevent in interface State<ApplicationState>Copyright © 2019. All Rights Reserved.