public final class TaskGroupStateManager extends Object
Constructor and Description |
---|
TaskGroupStateManager(ScheduledTaskGroup scheduledTaskGroup,
DAG<Task,RuntimeEdge<Task>> taskGroupDag,
String executorId,
PersistentConnectionToMasterMap persistentConnectionToMasterMap,
MetricMessageSender metricMessageSender) |
Modifier and Type | Method and Description |
---|---|
void |
getCurrentTaskGroupExecutionState() |
void |
onTaskGroupStateChanged(TaskGroupState.State newState,
Optional<String> taskPutOnHold,
Optional<TaskGroupState.RecoverableFailureCause> cause)
Updates the state of the task group.
|
void |
onTaskStateChanged(String physicalTaskId,
TaskState.State newState,
Optional<TaskGroupState.RecoverableFailureCause> cause)
Updates the state of a task.
|
public TaskGroupStateManager(ScheduledTaskGroup scheduledTaskGroup, DAG<Task,RuntimeEdge<Task>> taskGroupDag, String executorId, PersistentConnectionToMasterMap persistentConnectionToMasterMap, MetricMessageSender metricMessageSender)
public void onTaskGroupStateChanged(TaskGroupState.State newState, Optional<String> taskPutOnHold, Optional<TaskGroupState.RecoverableFailureCause> cause)
newState
- of the task group.taskPutOnHold
- the logical ID of the tasks put on hold, empty otherwise.cause
- only provided as non-empty upon recoverable failures.public void onTaskStateChanged(String physicalTaskId, TaskState.State newState, Optional<TaskGroupState.RecoverableFailureCause> cause)
physicalTaskId
- of the task.newState
- of the task.cause
- only provided as non-empty upon recoverable failures.public void getCurrentTaskGroupExecutionState()
Copyright © 2018. All rights reserved.