Class TieredInternalShuffleMaster
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.tiered.shuffle.TieredInternalShuffleMaster
-
public class TieredInternalShuffleMaster extends Object
A wrapper internal shuffle master class for tiered storage. All the tiered storage operations with the shuffle master should be wrapped in this class.
-
-
Constructor Summary
Constructors Constructor Description TieredInternalShuffleMaster(ShuffleMasterContext shuffleMasterContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TierShuffleDescriptor>
addPartitionAndGetShuffleDescriptor(JobID jobID, ResultPartitionID resultPartitionID)
void
close()
void
registerJob(JobShuffleContext context)
Registers the target job together with the correspondingJobShuffleContext
to this shuffle master.void
releasePartition(ShuffleDescriptor shuffleDescriptor)
void
unregisterJob(JobID jobID)
Unregisters the target job from this shuffle master, which means the corresponding job has reached a global termination state and all the allocated resources except for the cluster partitions can be cleared.
-
-
-
Constructor Detail
-
TieredInternalShuffleMaster
public TieredInternalShuffleMaster(ShuffleMasterContext shuffleMasterContext)
-
-
Method Detail
-
registerJob
public void registerJob(JobShuffleContext context)
Registers the target job together with the correspondingJobShuffleContext
to this shuffle master.
-
unregisterJob
public void unregisterJob(JobID jobID)
Unregisters the target job from this shuffle master, which means the corresponding job has reached a global termination state and all the allocated resources except for the cluster partitions can be cleared.- Parameters:
jobID
- ID of the target job to be unregistered.
-
addPartitionAndGetShuffleDescriptor
public List<TierShuffleDescriptor> addPartitionAndGetShuffleDescriptor(JobID jobID, ResultPartitionID resultPartitionID)
-
releasePartition
public void releasePartition(ShuffleDescriptor shuffleDescriptor)
-
close
public void close()
-
-