public class ActorGatewayTaskManagerActions extends Object implements TaskManagerActions
ActorGateway to forward the messages.| Constructor and Description |
|---|
ActorGatewayTaskManagerActions(ActorGateway actorGateway) |
| Modifier and Type | Method and Description |
|---|---|
void |
failTask(ExecutionAttemptID executionAttemptID,
Throwable cause)
Tells the task manager to fail the given task.
|
void |
notifyFatalError(String message,
Throwable cause)
Notifies the task manager about a fatal error occurred in the task.
|
void |
updateTaskExecutionState(TaskExecutionState taskExecutionState)
Notifies the task manager about the task execution state update.
|
public ActorGatewayTaskManagerActions(ActorGateway actorGateway)
public void notifyFatalError(String message, Throwable cause)
TaskManagerActionsnotifyFatalError in interface TaskManagerActionsmessage - Message to reportcause - Cause of the fatal errorpublic void failTask(ExecutionAttemptID executionAttemptID, Throwable cause)
TaskManagerActionsfailTask in interface TaskManagerActionsexecutionAttemptID - Execution attempt ID of the task to failcause - Cause of the failurepublic void updateTaskExecutionState(TaskExecutionState taskExecutionState)
TaskManagerActionsupdateTaskExecutionState in interface TaskManagerActionstaskExecutionState - Task execution state updateCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.