Class JobMasterPartitionTrackerImpl
java.lang.Object
org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor>
org.apache.flink.runtime.io.network.partition.JobMasterPartitionTrackerImpl
- All Implemented Interfaces:
JobMasterPartitionTracker,PartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor>
public class JobMasterPartitionTrackerImpl
extends AbstractPartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor>
implements JobMasterPartitionTracker
Utility for tracking partitions and issuing release calls to task executors and shuffle masters.
-
Field Summary
Fields inherited from class org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker
partitionInfos, partitionTable -
Constructor Summary
ConstructorsConstructorDescriptionJobMasterPartitionTrackerImpl(org.apache.flink.api.common.JobID jobId, ShuffleMaster<?> shuffleMaster, PartitionTrackerFactory.TaskExecutorGatewayLookup taskExecutorGatewayLookup) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectToResourceManager(ResourceManagerGateway resourceManagerGateway) Gets all the partitions under tracking.getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateDataSetID) Get the shuffle descriptors of the cluster partitions ordered by partition number.voidstartTrackingPartition(ResourceID producingTaskExecutorId, ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor) Starts the tracking of the given partition for the given task executor ID.stopTrackingAndPromotePartitions(Collection<ResultPartitionID> resultPartitionIds) Promotes the given partitions, and stops the tracking of partitions that were promoted.voidstopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds, boolean releaseOnShuffleMaster) Releases the given partitions and stop the tracking of partitions that were released.Methods inherited from class org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.network.partition.JobMasterPartitionTracker
getAllTrackedClusterPartitions, getAllTrackedNonClusterPartitions, stopTrackingAndReleasePartitionsMethods inherited from interface org.apache.flink.runtime.io.network.partition.PartitionTracker
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
-
Constructor Details
-
JobMasterPartitionTrackerImpl
public JobMasterPartitionTrackerImpl(org.apache.flink.api.common.JobID jobId, ShuffleMaster<?> shuffleMaster, PartitionTrackerFactory.TaskExecutorGatewayLookup taskExecutorGatewayLookup)
-
-
Method Details
-
startTrackingPartition
public void startTrackingPartition(ResourceID producingTaskExecutorId, ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor) Description copied from interface:JobMasterPartitionTrackerStarts the tracking of the given partition for the given task executor ID.- Specified by:
startTrackingPartitionin interfaceJobMasterPartitionTracker- Parameters:
producingTaskExecutorId- ID of task executor on which the partition is producedresultPartitionDeploymentDescriptor- deployment descriptor of the partition
-
stopTrackingAndReleasePartitions
public void stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds, boolean releaseOnShuffleMaster) Description copied from interface:JobMasterPartitionTrackerReleases the given partitions and stop the tracking of partitions that were released. The boolean flag indicates whether we need to notify the ShuffleMaster to release all external resources or not.- Specified by:
stopTrackingAndReleasePartitionsin interfaceJobMasterPartitionTracker
-
stopTrackingAndPromotePartitions
public CompletableFuture<Void> stopTrackingAndPromotePartitions(Collection<ResultPartitionID> resultPartitionIds) Description copied from interface:JobMasterPartitionTrackerPromotes the given partitions, and stops the tracking of partitions that were promoted.- Specified by:
stopTrackingAndPromotePartitionsin interfaceJobMasterPartitionTracker- Parameters:
resultPartitionIds- ID of the partition containing both job partitions and cluster partitions.- Returns:
- Future that will be completed if the partitions are promoted.
-
getAllTrackedPartitions
Description copied from interface:JobMasterPartitionTrackerGets all the partitions under tracking.- Specified by:
getAllTrackedPartitionsin interfaceJobMasterPartitionTracker
-
connectToResourceManager
- Specified by:
connectToResourceManagerin interfaceJobMasterPartitionTracker
-
getClusterPartitionShuffleDescriptors
public List<ShuffleDescriptor> getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateDataSetID) Description copied from interface:JobMasterPartitionTrackerGet the shuffle descriptors of the cluster partitions ordered by partition number.- Specified by:
getClusterPartitionShuffleDescriptorsin interfaceJobMasterPartitionTracker
-