Class TaskExecutorPartitionTrackerImpl
java.lang.Object
org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker<org.apache.flink.api.common.JobID,TaskExecutorPartitionInfo>
org.apache.flink.runtime.io.network.partition.TaskExecutorPartitionTrackerImpl
- All Implemented Interfaces:
PartitionTracker<org.apache.flink.api.common.JobID,,TaskExecutorPartitionInfo> TaskExecutorPartitionTracker
public class TaskExecutorPartitionTrackerImpl
extends AbstractPartitionTracker<org.apache.flink.api.common.JobID,TaskExecutorPartitionInfo>
implements TaskExecutorPartitionTracker
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
ConstructorsConstructorDescriptionTaskExecutorPartitionTrackerImpl(ShuffleEnvironment<?, ?> shuffleEnvironment) -
Method Summary
Modifier and TypeMethodDescriptionCreates aClusterPartitionReport, describing which cluster partitions are currently available.getTrackedPartitionsFor(org.apache.flink.api.common.JobID producingJobId) Get all partitions tracked for the given job.voidpromoteJobPartitions(Collection<ResultPartitionID> partitionsToPromote) Promotes the given partitions.voidstartTrackingPartition(org.apache.flink.api.common.JobID producingJobId, TaskExecutorPartitionInfo partitionInfo) Starts the tracking of the given partition for the given job.voidReleases and stops tracking all partitions.voidstopTrackingAndReleaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease) Releases partitions associated with the given datasets and stops tracking of partitions that were released.voidstopTrackingAndReleaseJobPartitions(Collection<ResultPartitionID> partitionsToRelease) Releases the given partitions and stop the tracking of partitions that were released.voidstopTrackingAndReleaseJobPartitionsFor(org.apache.flink.api.common.JobID producingJobId) Releases all partitions for the given job 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.PartitionTracker
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
-
Constructor Details
-
TaskExecutorPartitionTrackerImpl
-
-
Method Details
-
startTrackingPartition
public void startTrackingPartition(org.apache.flink.api.common.JobID producingJobId, TaskExecutorPartitionInfo partitionInfo) Description copied from interface:TaskExecutorPartitionTrackerStarts the tracking of the given partition for the given job.- Specified by:
startTrackingPartitionin interfaceTaskExecutorPartitionTracker- Parameters:
producingJobId- ID of job by which the partition is producedpartitionInfo- information about the partition
-
stopTrackingAndReleaseJobPartitions
Description copied from interface:TaskExecutorPartitionTrackerReleases the given partitions and stop the tracking of partitions that were released.- Specified by:
stopTrackingAndReleaseJobPartitionsin interfaceTaskExecutorPartitionTracker
-
stopTrackingAndReleaseJobPartitionsFor
public void stopTrackingAndReleaseJobPartitionsFor(org.apache.flink.api.common.JobID producingJobId) Description copied from interface:TaskExecutorPartitionTrackerReleases all partitions for the given job and stop the tracking of partitions that were released.- Specified by:
stopTrackingAndReleaseJobPartitionsForin interfaceTaskExecutorPartitionTracker
-
getTrackedPartitionsFor
public Collection<TaskExecutorPartitionInfo> getTrackedPartitionsFor(org.apache.flink.api.common.JobID producingJobId) Description copied from interface:TaskExecutorPartitionTrackerGet all partitions tracked for the given job.- Specified by:
getTrackedPartitionsForin interfaceTaskExecutorPartitionTracker- Parameters:
producingJobId- the job id- Returns:
- the tracked partitions
-
promoteJobPartitions
Description copied from interface:TaskExecutorPartitionTrackerPromotes the given partitions.- Specified by:
promoteJobPartitionsin interfaceTaskExecutorPartitionTracker
-
stopTrackingAndReleaseClusterPartitions
public void stopTrackingAndReleaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease) Description copied from interface:TaskExecutorPartitionTrackerReleases partitions associated with the given datasets and stops tracking of partitions that were released.- Specified by:
stopTrackingAndReleaseClusterPartitionsin interfaceTaskExecutorPartitionTracker- Parameters:
dataSetsToRelease- data sets to release
-
stopTrackingAndReleaseAllClusterPartitions
public void stopTrackingAndReleaseAllClusterPartitions()Description copied from interface:TaskExecutorPartitionTrackerReleases and stops tracking all partitions.- Specified by:
stopTrackingAndReleaseAllClusterPartitionsin interfaceTaskExecutorPartitionTracker
-
createClusterPartitionReport
Description copied from interface:TaskExecutorPartitionTrackerCreates aClusterPartitionReport, describing which cluster partitions are currently available.- Specified by:
createClusterPartitionReportin interfaceTaskExecutorPartitionTracker
-