public interface TaskExecutionListener
| Modifier and Type | Method and Description |
|---|---|
void |
onTaskEnd(TaskExecution taskExecution)
Invoked before the
TaskExecution has been updated in the
TaskRepository upon task end. |
void |
onTaskFailed(TaskExecution taskExecution,
Throwable throwable)
Invoked if an uncaught exception occurs during a task execution.
|
void |
onTaskStartup(TaskExecution taskExecution)
Invoked after the
TaskExecution has been stored in the
TaskRepository. |
void onTaskStartup(TaskExecution taskExecution)
TaskExecution has been stored in the
TaskRepository.taskExecution - instance containing the information about the current task.void onTaskEnd(TaskExecution taskExecution)
TaskExecution has been updated in the
TaskRepository upon task end.taskExecution - instance containing the information about the current task.void onTaskFailed(TaskExecution taskExecution, Throwable throwable)
TaskExecution has been updated in the
TaskRepository and before the onTaskEnd is called.taskExecution - instance containing the information about the current task.throwable - the uncaught exception that was thrown during task execution.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.