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 ConstantsEnum ConstantDescriptionThe task run has finished.LikePERMANENT_ERROR, but in addition, task and its dependent tasks (parent, grand-parent, ..., plus explicit dependents) are going to be suspended.Task run hasn't finished, but nevertheless it must end (for now).The run has failed.LikeHALTING_ERROR, but in addition, the whole task tree should be restarted.Temporary failure during the run.Task run hasn't finished, but it should go to WAITING state. -
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 going to be closed. While single-run tasks are, recurring ones will run again later. -
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. The 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 occasions. So the administrator can resume them after correcting the problem. -
HALTING_ERROR
LikePERMANENT_ERROR, but in addition, task and its dependent tasks (parent, grand-parent, ..., plus explicit dependents) are going to be suspended. In fact, this halts the whole task tree. Currently used when handling policy actions that suspend tasks. -
RESTART_REQUESTED
LikeHALTING_ERROR, but in addition, the whole task tree should be restarted. TheTaskRunResult.taskRestartInstructioncan provide additional instructions, like the delay before restart. -
INTERRUPTED
Task run hasn't finished, but nevertheless it must end (for now). An example of such a situation is when a task execution is requested to stop, e.g., when suspending the task or shutting down the node. -
WAITING
Task run hasn't finished, but it should go to WAITING state. Typical example is when a task delegated the work to its subtasks and now it is waiting for their completion.
-
-
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
-