Interface TaskRun
- All Superinterfaces:
ShortDumpable
- All Known Implementing Classes:
ActivityBasedTaskRun
Represents a run of a task.
Originally intended to cover multitude of tasks.
However, currently there's only one implementation (for activity-based tasks).
Therefore, *TODO* consider removing this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canRun()
@NotNull CommonTaskBeans
getBeans()
default Task
@NotNull RunningTask
Returns the task associated with this run.default Long
default boolean
@NotNull TaskRunResult
run
(OperationResult result) Passes control to the run object.default void
Show the content of the object intended for diagnostics.Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Method Details
-
run
Passes control to the run object. The object is now responsible for the whole execution of this task.- Throws:
TaskException
-
getRunningTask
Returns the task associated with this run. -
getBeans
-
heartbeat
-
shortDump
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
getRootTask
-
canRun
default boolean canRun() -
isRootTask
default boolean isRootTask()
-