public class DefaultExecutionDeploymentTracker extends Object implements ExecutionDeploymentTracker
ExecutionDeploymentTracker
implementation.Constructor and Description |
---|
DefaultExecutionDeploymentTracker() |
Modifier and Type | Method and 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.
|
public void startTrackingPendingDeploymentOf(ExecutionAttemptID executionAttemptId, ResourceID host)
ExecutionDeploymentTracker
startTrackingPendingDeploymentOf
in interface ExecutionDeploymentTracker
executionAttemptId
- execution to start trackinghost
- hosting task executorpublic void completeDeploymentOf(ExecutionAttemptID executionAttemptId)
ExecutionDeploymentTracker
completeDeploymentOf
in interface ExecutionDeploymentTracker
executionAttemptId
- execution whose deployment to mark as completepublic void stopTrackingDeploymentOf(ExecutionAttemptID executionAttemptId)
ExecutionDeploymentTracker
stopTrackingDeploymentOf
in interface ExecutionDeploymentTracker
executionAttemptId
- execution to stop trackingpublic Map<ExecutionAttemptID,ExecutionDeploymentState> getExecutionsOn(ResourceID host)
ExecutionDeploymentTracker
getExecutionsOn
in interface ExecutionDeploymentTracker
host
- hosting task executorCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.