public class TaskExecutionListenerSupport extends Object implements TaskExecutionListener
TaskExecutionListener to allow for overriding
only the methods of interest.| Constructor and Description |
|---|
TaskExecutionListenerSupport() |
| 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. |
public void onTaskStartup(TaskExecution taskExecution)
TaskExecutionListenerTaskExecution has been stored in the
TaskRepository.onTaskStartup in interface TaskExecutionListenertaskExecution - instance containing the information about the current task.public void onTaskEnd(TaskExecution taskExecution)
TaskExecutionListenerTaskExecution has been updated in the
TaskRepository upon task end.onTaskEnd in interface TaskExecutionListenertaskExecution - instance containing the information about the current task.public void onTaskFailed(TaskExecution taskExecution, Throwable throwable)
TaskExecutionListenerTaskExecution has been updated in the
TaskRepository and before the onTaskEnd is called.onTaskFailed in interface TaskExecutionListenertaskExecution - 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.