Package oracle.as.scheduler
Enum Class State
- All Implemented Interfaces:
Serializable
,Comparable<State>
,java.lang.constant.Constable
Enum of ESS request states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequest execution is blocked by one or more incompatible requests.The request was cancelled.The request has been cancelled and is awaiting acknowledgement.Job executable has completed and request post-processing has commenced.Request processing resulted in error.The request ran, resulted in an error, and is eligible for automatic retry.The request requires manual intervention in order to be retried or go to a terminal state.The request expired before it could be processed.The request, and all child requests, are finished.Request has been explicitly held.The request paused for sub-request completion.The request has been submitted but not yet validated.Request has been dispatched and is awaiting processing.Request is being processed.The schedule for the request has ended, or a request expiration time specified at request submission has been reached.The request ran and was successful.Unknown or invalid state.The request was submitted but failed validation.Request is awaiting dispatch.The request ran and resulted in a warning. -
Method Summary
Modifier and TypeMethodDescriptionstatic State
fromString
(String stateStr) Converts a stringified state into a State object.The set of the non-terminal states based on the value returned byisTerminal
.static State
getState
(int value) The State associated with the given numeric value.The set of the terminal states based on the value returned byisTerminal
.boolean
Indicates if the state is a terminal state.Enterprise Manager support to acquire a localized string value.int
value()
The numeric value associated with the State.static State
Returns the enum constant of this class with the specified name.static State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN
Unknown or invalid state. -
WAIT
Request is awaiting dispatch. -
READY
Request has been dispatched and is awaiting processing. -
RUNNING
Request is being processed. -
COMPLETED
Job executable has completed and request post-processing has commenced. -
BLOCKED
Request execution is blocked by one or more incompatible requests. -
HOLD
Request has been explicitly held. -
CANCELLING
The request has been cancelled and is awaiting acknowledgement. -
EXPIRED
The request expired before it could be processed. -
CANCELLED
The request was cancelled. -
ERROR
Request processing resulted in error. The job executable may or may not have been run depending on where the error was encountered in processing lifecycle of the request. -
WARNING
The request ran and resulted in a warning. -
SUCCEEDED
The request ran and was successful. -
PAUSED
The request paused for sub-request completion. -
PENDING_VALIDATION
The request has been submitted but not yet validated. -
VALIDATION_FAILED
The request was submitted but failed validation. -
SCHEDULE_ENDED
The schedule for the request has ended, or a request expiration time specified at request submission has been reached.This is a non-terminal state for a schedule-based request that indicates that no new child request will be generated. One or more child requests may still be in a non-terminal state.
-
FINISHED
The request, and all child requests, are finished.This is a terminal state for a schedule-based request that indicates that all child requests are in a terminal state.
-
ERROR_AUTO_RETRY
The request ran, resulted in an error, and is eligible for automatic retry. -
ERROR_MANUAL_RECOVERY
The request requires manual intervention in order to be retried or go to a terminal state.
-
-
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
-
isTerminal
public boolean isTerminal()Indicates if the state is a terminal state.- Returns:
- true if terminal, false otherwise.
-
value
public int value()The numeric value associated with the State.- Returns:
- value for this state.
-
getState
The State associated with the given numeric value.- Parameters:
value
- the value to convert to state.- Returns:
- associated state.
-
getTerminalStates
The set of the terminal states based on the value returned byisTerminal
.- Returns:
- a set of the terminal states
-
getNonTerminalStates
The set of the non-terminal states based on the value returned byisTerminal
.- Returns:
- set of non-terminal states
-
fromString
Converts a stringified state into a State object.- Parameters:
stateStr
- the string to convert- Returns:
- the state derived from
stateStr
, or {State.UNKNOWN} if the conversion could not be made.
-
toString
Enterprise Manager support to acquire a localized string value.- Parameters:
locale
- the desired locale.- Returns:
- the localized string
-