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
Constructors Constructor Description TaskExecutorPartitionTrackerImpl(ShuffleEnvironment<?,?> shuffleEnvironment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterPartitionReportcreateClusterPartitionReport()Creates aClusterPartitionReport, describing which cluster partitions are currently available.Collection<TaskExecutorPartitionInfo>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.voidstopTrackingAndReleaseAllClusterPartitions()Releases 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, stopTrackingPartitionsFor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.io.network.partition.PartitionTracker
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
-
-
-
-
Constructor Detail
-
TaskExecutorPartitionTrackerImpl
public TaskExecutorPartitionTrackerImpl(ShuffleEnvironment<?,?> shuffleEnvironment)
-
-
Method Detail
-
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
public void stopTrackingAndReleaseJobPartitions(Collection<ResultPartitionID> partitionsToRelease)
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
public void promoteJobPartitions(Collection<ResultPartitionID> partitionsToPromote)
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
public ClusterPartitionReport createClusterPartitionReport()
Description copied from interface:TaskExecutorPartitionTrackerCreates aClusterPartitionReport, describing which cluster partitions are currently available.- Specified by:
createClusterPartitionReportin interfaceTaskExecutorPartitionTracker
-
-