Interface TaskManagerActions
public interface TaskManagerActions
Interface for the communication of the
Task with the TaskExecutor.-
Method Summary
Modifier and TypeMethodDescriptionvoidfailTask(ExecutionAttemptID executionAttemptID, Throwable cause) Tells the task manager to fail the given task.voidnotifyEndOfData(ExecutionAttemptID executionAttemptID) Notifies that the task has reached the end of data.voidnotifyFatalError(String message, Throwable cause) Notifies the task manager about a fatal error occurred in the task.voidupdateTaskExecutionState(TaskExecutionState taskExecutionState) Notifies the task manager about the task execution state update.
-
Method Details
-
notifyFatalError
Notifies the task manager about a fatal error occurred in the task.- Parameters:
message- Message to reportcause- Cause of the fatal error
-
failTask
Tells the task manager to fail the given task.- Parameters:
executionAttemptID- Execution attempt ID of the task to failcause- Cause of the failure
-
updateTaskExecutionState
Notifies the task manager about the task execution state update.- Parameters:
taskExecutionState- Task execution state update
-
notifyEndOfData
Notifies that the task has reached the end of data.- Parameters:
executionAttemptID- Execution attempt ID of the task.
-