public interface TaskLifecycleObserver
Modifier and Type | Method and Description |
---|---|
void |
abnormalOperationTermination(java.lang.String taskIdentifier,
java.lang.String reason)
Indicates that the task in question has terminated abnormally.
|
void |
isChangedPeriodicExecution(java.lang.String taskIdentifier)
Indicates that the task in question has changed it execution profile.
|
void |
isComplete(java.lang.String taskIdentifier)
Indicates that the task in question has finished processing.
|
void |
isExecuting(java.lang.String taskIdentifier)
Indicates that the task in question has been scheduled for execution and
is currently executing.
|
void |
isInitializing(java.lang.String taskIdentifier)
Indicates that the task is question is currently performing
initialization related operations.
|
void |
isReady(java.lang.String taskIdentifier)
When a task is ready for execution, this method is invoked on its
registered observer.
|
void |
isWaitingForData(java.lang.String taskIdentifier)
Indicates that the task in question is waiting for the arrival of data to
begin processing.
|
void isReady(java.lang.String taskIdentifier)
taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.void isInitializing(java.lang.String taskIdentifier)
taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.void isExecuting(java.lang.String taskIdentifier)
taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.void isWaitingForData(java.lang.String taskIdentifier)
taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.void isComplete(java.lang.String taskIdentifier)
taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.void abnormalOperationTermination(java.lang.String taskIdentifier, java.lang.String reason)
Operation
.taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.reason
- A description of the cause of the error.void isChangedPeriodicExecution(java.lang.String taskIdentifier)
taskIdentifier
- The identifier of the Task whose life cycle transition is
being reported on.