@Component public class NotificationTaskListener extends Object implements TaskListener
Constructor and Description |
---|
NotificationTaskListener() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
onTaskFinish(Task task,
TaskRunResult runResult)
Called when a task execution routine (i.e.
|
void |
onTaskStart(Task task)
Called when a task execution routine (i.e.
|
void |
onTaskThreadFinish(Task task)
Called when task's execution thread is finishing
|
void |
onTaskThreadStart(Task task,
boolean isRecovering)
Called when a task's execution thread is started.
|
@PostConstruct public void init()
public void onTaskStart(Task task)
TaskListener
onTaskStart
in interface TaskListener
task
- task that is about to be startedpublic void onTaskFinish(Task task, TaskRunResult runResult)
TaskListener
onTaskFinish
in interface TaskListener
task
- task that was just finishedrunResult
- result of the task's runpublic void onTaskThreadStart(Task task, boolean isRecovering)
TaskListener
onTaskThreadStart
in interface TaskListener
task
- task whose thread was startedisRecovering
- true if the task was recovering from previous nodefailurepublic void onTaskThreadFinish(Task task)
TaskListener
onTaskThreadFinish
in interface TaskListener
task
- task whose thread is finishingCopyright © 2016 evolveum. All rights reserved.