public class JobMasterPartitionTrackerImpl extends AbstractPartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor> implements JobMasterPartitionTracker
partitionInfos, partitionTable
Constructor and Description |
---|
JobMasterPartitionTrackerImpl(JobID jobId,
ShuffleMaster<?> shuffleMaster,
PartitionTrackerFactory.TaskExecutorGatewayLookup taskExecutorGatewayLookup) |
Modifier and Type | Method and Description |
---|---|
Collection<ResultPartitionDeploymentDescriptor> |
getAllTrackedPartitions()
Get all the partitions under tracking.
|
void |
startTrackingPartition(ResourceID producingTaskExecutorId,
ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor)
Starts the tracking of the given partition for the given task executor ID.
|
void |
stopTrackingAndReleaseOrPromotePartitions(Collection<ResultPartitionID> resultPartitionIds)
Releases the job partitions and promotes the cluster partitions, and stops the tracking of
partitions that were released/promoted.
|
void |
stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds,
boolean releaseOnShuffleMaster)
Releases the given partitions and stop the tracking of partitions that were released.
|
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stopTrackingAndReleasePartitions
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
public JobMasterPartitionTrackerImpl(JobID jobId, ShuffleMaster<?> shuffleMaster, PartitionTrackerFactory.TaskExecutorGatewayLookup taskExecutorGatewayLookup)
public void startTrackingPartition(ResourceID producingTaskExecutorId, ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor)
JobMasterPartitionTracker
startTrackingPartition
in interface JobMasterPartitionTracker
producingTaskExecutorId
- ID of task executor on which the partition is producedresultPartitionDeploymentDescriptor
- deployment descriptor of the partitionpublic void stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds, boolean releaseOnShuffleMaster)
JobMasterPartitionTracker
stopTrackingAndReleasePartitions
in interface JobMasterPartitionTracker
public void stopTrackingAndReleaseOrPromotePartitions(Collection<ResultPartitionID> resultPartitionIds)
JobMasterPartitionTracker
stopTrackingAndReleaseOrPromotePartitions
in interface JobMasterPartitionTracker
public Collection<ResultPartitionDeploymentDescriptor> getAllTrackedPartitions()
JobMasterPartitionTracker
getAllTrackedPartitions
in interface JobMasterPartitionTracker
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.