public class ResourceManagerPartitionTrackerImpl extends Object implements ResourceManagerPartitionTracker
ResourceManagerPartitionTracker implementation.
Internal tracking info must only be updated upon reception of a ClusterPartitionReport, as the task executor state is the source of truth.
| 构造器和说明 |
|---|
ResourceManagerPartitionTrackerImpl(TaskExecutorClusterPartitionReleaser taskExecutorClusterPartitionReleaser) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<IntermediateDataSetID,DataSetMetaInfo> |
listDataSets()
Returns all data sets for which partitions are being tracked.
|
void |
processTaskExecutorClusterPartitionReport(ResourceID taskExecutorId,
ClusterPartitionReport clusterPartitionReport)
Processes
ClusterPartitionReport of a task executor. |
void |
processTaskExecutorShutdown(ResourceID taskExecutorId)
Processes the shutdown of task executor.
|
CompletableFuture<Void> |
releaseClusterPartitions(IntermediateDataSetID dataSetId)
Issues a release calls to all task executors that are hosting partitions of the given data
set.
|
public ResourceManagerPartitionTrackerImpl(TaskExecutorClusterPartitionReleaser taskExecutorClusterPartitionReleaser)
public void processTaskExecutorClusterPartitionReport(ResourceID taskExecutorId, ClusterPartitionReport clusterPartitionReport)
ResourceManagerPartitionTrackerClusterPartitionReport of a task executor. Updates the tracking information
for the respective task executor. Any partition no longer being hosted on the task executor
is considered lost, corrupting the corresponding data set. For any such data set this method
issues partition release calls to all task executors that are hosting partitions of this data
set.processTaskExecutorClusterPartitionReport 在接口中 ResourceManagerPartitionTrackertaskExecutorId - origin of the reportclusterPartitionReport - partition reportpublic void processTaskExecutorShutdown(ResourceID taskExecutorId)
ResourceManagerPartitionTrackerprocessTaskExecutorShutdown 在接口中 ResourceManagerPartitionTrackertaskExecutorId - task executor that shut downpublic CompletableFuture<Void> releaseClusterPartitions(IntermediateDataSetID dataSetId)
ResourceManagerPartitionTrackerreleaseClusterPartitions 在接口中 ResourceManagerPartitionTrackerdataSetId - data set to releasepublic Map<IntermediateDataSetID,DataSetMetaInfo> listDataSets()
ResourceManagerPartitionTrackerlistDataSets 在接口中 ResourceManagerPartitionTrackerCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.