Class TieredStorageMasterClient
java.lang.Object
org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage.TieredStorageMasterClient
Client of the Tiered Storage used by the master.
-
Constructor Summary
ConstructorsConstructorDescriptionTieredStorageMasterClient(List<org.apache.flink.api.java.tuple.Tuple2<String, TierMasterAgent>> tiers, ShuffleDescriptorRetriever shuffleDescriptorRetriever) -
Method Summary
Modifier and TypeMethodDescriptionaddPartitionAndGetShuffleDescriptor(org.apache.flink.api.common.JobID jobID, int numSubpartitions, ResultPartitionID resultPartitionID) voidclose()getPartitionWithMetrics(JobShuffleContext jobShuffleContext, Duration timeout, Set<ResultPartitionID> expectedPartitions) voidregisterJob(org.apache.flink.api.common.JobID jobID, TierShuffleHandler shuffleHandler) voidreleasePartition(ShuffleDescriptor shuffleDescriptor) voidrestoreState(List<TieredInternalShuffleMasterSnapshot> snapshots, org.apache.flink.api.common.JobID jobId) voidrestoreState(TieredInternalShuffleMasterSnapshot clusterSnapshot) voidsnapshotState(CompletableFuture<AllTieredShuffleMasterSnapshots> snapshotFuture) voidsnapshotState(CompletableFuture<AllTieredShuffleMasterSnapshots> snapshotFuture, ShuffleMasterSnapshotContext context, org.apache.flink.api.common.JobID jobId) voidunregisterJob(org.apache.flink.api.common.JobID jobID)
-
Constructor Details
-
TieredStorageMasterClient
public TieredStorageMasterClient(List<org.apache.flink.api.java.tuple.Tuple2<String, TierMasterAgent>> tiers, ShuffleDescriptorRetriever shuffleDescriptorRetriever)
-
-
Method Details
-
registerJob
-
unregisterJob
public void unregisterJob(org.apache.flink.api.common.JobID jobID) -
addPartitionAndGetShuffleDescriptor
public List<TierShuffleDescriptor> addPartitionAndGetShuffleDescriptor(org.apache.flink.api.common.JobID jobID, int numSubpartitions, ResultPartitionID resultPartitionID) -
releasePartition
-
snapshotState
public void snapshotState(CompletableFuture<AllTieredShuffleMasterSnapshots> snapshotFuture, ShuffleMasterSnapshotContext context, org.apache.flink.api.common.JobID jobId) -
snapshotState
-
restoreState
-
restoreState
public void restoreState(List<TieredInternalShuffleMasterSnapshot> snapshots, org.apache.flink.api.common.JobID jobId) -
getPartitionWithMetrics
public CompletableFuture<Collection<PartitionWithMetrics>> getPartitionWithMetrics(JobShuffleContext jobShuffleContext, Duration timeout, Set<ResultPartitionID> expectedPartitions) -
close
public void close()
-