Package com.evolveum.midpoint.task.api
Enum Class TaskRunResult.TaskRunResultStatus
java.lang.Object
java.lang.Enum<TaskRunResult.TaskRunResultStatus>
com.evolveum.midpoint.task.api.TaskRunResult.TaskRunResultStatus
- All Implemented Interfaces:
Serializable
,Comparable<TaskRunResult.TaskRunResultStatus>
,Constable
- Enclosing class:
- TaskRunResult
public static enum TaskRunResult.TaskRunResultStatus
extends Enum<TaskRunResult.TaskRunResultStatus>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe task run has finished.Task run hasn't finished but nevertheless it must end (for now).Task has entered waiting state.The run has failed.Temporary failure during the run. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TaskRunResult.TaskRunResultStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISHED
The task run has finished. This does not necessarily mean that the task itself is finished. For single tasks this means that the task is finished, but it is different for recurring tasks. Such a task will run again after it sleeps for a while (or after the scheduler will start it again). -
PERMANENT_ERROR
The run has failed. The error is permanent. Unless the administrator does something to recover from the situation, there is no point in re-trying the run. Usual case of this error is task misconfiguration. -
TEMPORARY_ERROR
Temporary failure during the run. The error is temporary. The situation may change later when the conditions will be more "favorable". It makes sense to retry the run. Usual cases of this error are network timeouts. For single-run tasks we SUSPEND them on such occasion. So the administrator can release them after correcting the problem. -
INTERRUPTED
Task run hasn't finished but nevertheless it must end (for now). An example of such a situation is when the long-living task run execution is requested to stop (e.g. when suspending the task or shutting down the node). -
IS_WAITING
Task has entered waiting state. TODO. EXPERIMENTAL.
-
-
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
-