Package com.appliedolap.essbase
Enum Class EssApplication.Status
- All Implemented Interfaces:
Serializable,Comparable<EssApplication.Status>,Constable
- Enclosing interface:
- EssApplication
An enumeration for the different application states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplication is in the started state.Application is in the stopped state.State is unknown, currently unknown whether there are any states beyond stopped and started (such as starting) but this gives us some buffer against unknown states breaking the API. -
Method Summary
Modifier and TypeMethodDescriptionstatic EssApplication.StatusCreates a status by parsing the given text.static EssApplication.StatusReturns the enum constant of this class with the specified name.static EssApplication.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STOPPED
Application is in the stopped state. -
STARTED
Application is in the started state. -
UNKNOWN
State is unknown, currently unknown whether there are any states beyond stopped and started (such as starting) but this gives us some buffer against unknown states breaking the API.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
parse
Creates a status by parsing the given text. Parsing is case-insensitive. If a status cannot be determined then theUNKNOWNstatus will be returned.- Parameters:
statusText- the status text to parse.- Returns:
- a status for the text
-