Package org.opends.server.backends.task
Enum Class FailedDependencyAction
- All Implemented Interfaces:
Serializable
,Comparable<FailedDependencyAction>
,java.lang.constant.Constable
This enumeration defines the various ways that a task can behave if it is dependent upon another task and that
earlier task is done running but did not complete successfully.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe action that indicates that the dependent task should be canceled.The action that indicates that the dependent task should be disabled so that an administrator will have to re-enable it before it can start.The action that indicates that the dependent task should be processed anyway. -
Method Summary
Modifier and TypeMethodDescriptionstatic FailedDependencyAction
Returns the default action.static FailedDependencyAction
fromString
(String s) Retrieves the failed dependency action that corresponds to the provided string value.Gets the display name of this action.static FailedDependencyAction
Returns the enum constant of this class with the specified name.static FailedDependencyAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROCESS
The action that indicates that the dependent task should be processed anyway. -
CANCEL
The action that indicates that the dependent task should be canceled. -
DISABLE
The action that indicates that the dependent task should be disabled so that an administrator will have to re-enable it before it can start.
-
-
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
-
defaultValue
Returns the default action.- Returns:
- the default action
-
fromString
Retrieves the failed dependency action that corresponds to the provided string value.- Parameters:
s
- The string value for which to retrieve the corresponding failed dependency action.- Returns:
- The corresponding failed dependency action, or
null
if none could be associated with the provided string.
-
getDisplayName
Gets the display name of this action.- Returns:
- LocalizableMessage representing the name of this action
-