Class DefaultExecutionDeploymentTracker
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.DefaultExecutionDeploymentTracker
-
- All Implemented Interfaces:
ExecutionDeploymentTracker
public class DefaultExecutionDeploymentTracker extends Object implements ExecutionDeploymentTracker
DefaultExecutionDeploymentTracker
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultExecutionDeploymentTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeDeploymentOf(ExecutionAttemptID executionAttemptId)
Marks the deployment of the given execution as complete.Map<ExecutionAttemptID,ExecutionDeploymentState>
getExecutionsOn(ResourceID host)
Returns all tracked executions for the given host.void
startTrackingPendingDeploymentOf(ExecutionAttemptID executionAttemptId, ResourceID host)
Starts tracking the given execution that is being deployed on the given host.void
stopTrackingDeploymentOf(ExecutionAttemptID executionAttemptId)
Stops tracking the given execution.
-
-
-
Method Detail
-
startTrackingPendingDeploymentOf
public void startTrackingPendingDeploymentOf(ExecutionAttemptID executionAttemptId, ResourceID host)
Description copied from interface:ExecutionDeploymentTracker
Starts tracking the given execution that is being deployed on the given host.- Specified by:
startTrackingPendingDeploymentOf
in interfaceExecutionDeploymentTracker
- Parameters:
executionAttemptId
- execution to start trackinghost
- hosting task executor
-
completeDeploymentOf
public void completeDeploymentOf(ExecutionAttemptID executionAttemptId)
Description copied from interface:ExecutionDeploymentTracker
Marks the deployment of the given execution as complete.- Specified by:
completeDeploymentOf
in interfaceExecutionDeploymentTracker
- Parameters:
executionAttemptId
- execution whose deployment to mark as complete
-
stopTrackingDeploymentOf
public void stopTrackingDeploymentOf(ExecutionAttemptID executionAttemptId)
Description copied from interface:ExecutionDeploymentTracker
Stops tracking the given execution.- Specified by:
stopTrackingDeploymentOf
in interfaceExecutionDeploymentTracker
- Parameters:
executionAttemptId
- execution to stop tracking
-
getExecutionsOn
public Map<ExecutionAttemptID,ExecutionDeploymentState> getExecutionsOn(ResourceID host)
Description copied from interface:ExecutionDeploymentTracker
Returns all tracked executions for the given host.- Specified by:
getExecutionsOn
in interfaceExecutionDeploymentTracker
- Parameters:
host
- hosting task executor- Returns:
- tracked executions
-
-