public interface JobMasterPartitionTracker extends PartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor>
Modifier and Type | Method and Description |
---|---|
void |
connectToResourceManager(ResourceManagerGateway resourceManagerGateway) |
default Collection<ResultPartitionDeploymentDescriptor> |
getAllTrackedClusterPartitions()
Gets all the cluster partitions under tracking.
|
default Collection<ResultPartitionDeploymentDescriptor> |
getAllTrackedNonClusterPartitions()
Gets all the non-cluster partitions under tracking.
|
Collection<ResultPartitionDeploymentDescriptor> |
getAllTrackedPartitions()
Gets all the partitions under tracking.
|
List<ShuffleDescriptor> |
getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateDataSetID)
Get the shuffle descriptors of the cluster partitions ordered by partition number.
|
void |
startTrackingPartition(ResourceID producingTaskExecutorId,
ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor)
Starts the tracking of the given partition for the given task executor ID.
|
CompletableFuture<Void> |
stopTrackingAndPromotePartitions(Collection<ResultPartitionID> resultPartitionIds)
Promotes the given partitions, and stops the tracking of partitions that were promoted.
|
default void |
stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds)
Releases the given partitions and stop the tracking of partitions that were released.
|
void |
stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds,
boolean releaseOnShuffleMaster)
Releases the given partitions and stop the tracking of partitions that were released.
|
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
void startTrackingPartition(ResourceID producingTaskExecutorId, ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor)
producingTaskExecutorId
- ID of task executor on which the partition is producedresultPartitionDeploymentDescriptor
- deployment descriptor of the partitiondefault void stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds)
void stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds, boolean releaseOnShuffleMaster)
CompletableFuture<Void> stopTrackingAndPromotePartitions(Collection<ResultPartitionID> resultPartitionIds)
resultPartitionIds
- ID of the partition containing both job partitions and cluster
partitions.Collection<ResultPartitionDeploymentDescriptor> getAllTrackedPartitions()
default Collection<ResultPartitionDeploymentDescriptor> getAllTrackedNonClusterPartitions()
default Collection<ResultPartitionDeploymentDescriptor> getAllTrackedClusterPartitions()
void connectToResourceManager(ResourceManagerGateway resourceManagerGateway)
List<ShuffleDescriptor> getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateDataSetID)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.