Interface TaskExecutorPartitionTracker

All Superinterfaces:
PartitionTracker<org.apache.flink.api.common.JobID,TaskExecutorPartitionInfo>
All Known Implementing Classes:
TaskExecutorPartitionTrackerImpl

public interface TaskExecutorPartitionTracker extends PartitionTracker<org.apache.flink.api.common.JobID,TaskExecutorPartitionInfo>
Utility for tracking partitions.
  • Method Details

    • startTrackingPartition

      void startTrackingPartition(org.apache.flink.api.common.JobID producingJobId, TaskExecutorPartitionInfo partitionInfo)
      Starts the tracking of the given partition for the given job.
      Parameters:
      producingJobId - ID of job by which the partition is produced
      partitionInfo - information about the partition
    • stopTrackingAndReleaseJobPartitions

      void stopTrackingAndReleaseJobPartitions(Collection<ResultPartitionID> resultPartitionIds)
      Releases the given partitions and stop the tracking of partitions that were released.
    • stopTrackingAndReleaseJobPartitionsFor

      void stopTrackingAndReleaseJobPartitionsFor(org.apache.flink.api.common.JobID producingJobId)
      Releases all partitions for the given job and stop the tracking of partitions that were released.
    • getTrackedPartitionsFor

      Collection<TaskExecutorPartitionInfo> getTrackedPartitionsFor(org.apache.flink.api.common.JobID producingJobId)
      Get all partitions tracked for the given job.
      Parameters:
      producingJobId - the job id
      Returns:
      the tracked partitions
    • promoteJobPartitions

      void promoteJobPartitions(Collection<ResultPartitionID> partitionsToPromote)
      Promotes the given partitions.
    • stopTrackingAndReleaseClusterPartitions

      void stopTrackingAndReleaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease)
      Releases partitions associated with the given datasets and stops tracking of partitions that were released.
      Parameters:
      dataSetsToRelease - data sets to release
    • stopTrackingAndReleaseAllClusterPartitions

      void stopTrackingAndReleaseAllClusterPartitions()
      Releases and stops tracking all partitions.
    • createClusterPartitionReport

      ClusterPartitionReport createClusterPartitionReport()
      Creates a ClusterPartitionReport, describing which cluster partitions are currently available.