public class JobShuffleContextImpl extends Object implements JobShuffleContext
JobShuffleContext.| Constructor and Description |
|---|
JobShuffleContextImpl(org.apache.flink.api.common.JobID jobId,
JobMasterGateway jobMasterGateway) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobID |
getJobId() |
CompletableFuture<Collection<PartitionWithMetrics>> |
getPartitionWithMetrics(Duration timeout,
Set<ResultPartitionID> expectedPartitions)
Retrieves specified partitions and their metrics (identified by
expectedPartitions),
the metrics include sizes of sub-partitions in a result partition. |
void |
notifyPartitionRecoveryStarted()
Notifies that the recovery process of result partitions has started.
|
CompletableFuture<?> |
stopTrackingAndReleasePartitions(Collection<ResultPartitionID> partitionIds)
Notifies the job to stop tracking and release the target result partitions, which means these
partitions will be removed and will be reproduced if used afterwards.
|
public JobShuffleContextImpl(org.apache.flink.api.common.JobID jobId,
JobMasterGateway jobMasterGateway)
public org.apache.flink.api.common.JobID getJobId()
getJobId in interface JobShuffleContextJobID.public CompletableFuture<?> stopTrackingAndReleasePartitions(Collection<ResultPartitionID> partitionIds)
JobShuffleContextstopTrackingAndReleasePartitions in interface JobShuffleContextpublic CompletableFuture<Collection<PartitionWithMetrics>> getPartitionWithMetrics(Duration timeout, Set<ResultPartitionID> expectedPartitions)
JobShuffleContextexpectedPartitions),
the metrics include sizes of sub-partitions in a result partition.getPartitionWithMetrics in interface JobShuffleContexttimeout - The timeout used for retrieve the specified partitions.expectedPartitions - The set of identifiers for the result partitions whose metrics are
to be fetched.public void notifyPartitionRecoveryStarted()
JobShuffleContextnotifyPartitionRecoveryStarted in interface JobShuffleContextCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.