Package org.glassfish.api.admin
Enum Class AdminCommandState.State
- All Implemented Interfaces:
Serializable,Comparable<AdminCommandState.State>,Constable
- Enclosing interface:
AdminCommandState
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompleted successfully or unsuccessfullyCreated new job, ready to be executedDeprecated.Never setStarted and not completed -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the transition from one state to another is allowed.static AdminCommandState.StateReturns the enum constant of this class with the specified name.static AdminCommandState.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREPARED
Created new job, ready to be executed -
RUNNING
Started and not completed -
COMPLETED
Completed successfully or unsuccessfully -
RECORDED
Deprecated.Never setCompleted and recorded -
RUNNING_RETRYABLE
-
FAILED_RETRYABLE
-
REVERTING
-
REVERTED
-
-
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
-
isAllowedTransition
Checks if the transition from one state to another is allowed.- Parameters:
from-to-- Returns:
- true if yes, false otherwise
-