public interface TaskExecutorPartitionTracker extends PartitionTracker<JobID,TaskExecutorPartitionInfo>
Modifier and Type | Method and Description |
---|---|
ClusterPartitionReport |
createClusterPartitionReport()
Creates a
ClusterPartitionReport , describing which cluster partitions are currently
available. |
Collection<TaskExecutorPartitionInfo> |
getTrackedPartitionsFor(JobID producingJobId)
Get all partitions tracked for the given job.
|
void |
promoteJobPartitions(Collection<ResultPartitionID> partitionsToPromote)
Promotes the given partitions.
|
void |
startTrackingPartition(JobID producingJobId,
TaskExecutorPartitionInfo partitionInfo)
Starts the tracking of the given partition for the given job.
|
void |
stopTrackingAndReleaseAllClusterPartitions()
Releases and stops tracking all partitions.
|
void |
stopTrackingAndReleaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease)
Releases partitions associated with the given datasets and stops tracking of partitions that
were released.
|
void |
stopTrackingAndReleaseJobPartitions(Collection<ResultPartitionID> resultPartitionIds)
Releases the given partitions and stop the tracking of partitions that were released.
|
void |
stopTrackingAndReleaseJobPartitionsFor(JobID producingJobId)
Releases all partitions for the given job and stop the tracking of partitions that were
released.
|
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
void startTrackingPartition(JobID producingJobId, TaskExecutorPartitionInfo partitionInfo)
producingJobId
- ID of job by which the partition is producedpartitionInfo
- information about the partitionvoid stopTrackingAndReleaseJobPartitions(Collection<ResultPartitionID> resultPartitionIds)
void stopTrackingAndReleaseJobPartitionsFor(JobID producingJobId)
Collection<TaskExecutorPartitionInfo> getTrackedPartitionsFor(JobID producingJobId)
producingJobId
- the job idvoid promoteJobPartitions(Collection<ResultPartitionID> partitionsToPromote)
void stopTrackingAndReleaseClusterPartitions(Collection<IntermediateDataSetID> dataSetsToRelease)
dataSetsToRelease
- data sets to releasevoid stopTrackingAndReleaseAllClusterPartitions()
ClusterPartitionReport createClusterPartitionReport()
ClusterPartitionReport
, describing which cluster partitions are currently
available.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.