Class MemoryTierFactory
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.memory.MemoryTierFactory
-
- All Implemented Interfaces:
TierFactory
public class MemoryTierFactory extends Object implements TierFactory
The implementation ofTierFactoryfor memory tier.
-
-
Constructor Summary
Constructors Constructor Description MemoryTierFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TierConsumerAgentcreateConsumerAgent(List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<TierShuffleDescriptor> shuffleDescriptors, TieredStorageNettyService nettyService)Creates the consumer-side agent of a Tier.TierMasterAgentcreateMasterAgent(TieredStorageResourceRegistry tieredStorageResourceRegistry)Creates the master-side agent of a Tier.TierProducerAgentcreateProducerAgent(int numPartitions, int numSubpartitions, TieredStoragePartitionId partitionID, String dataFileBasePath, boolean isBroadcastOnly, TieredStorageMemoryManager memoryManager, TieredStorageNettyService nettyService, TieredStorageResourceRegistry resourceRegistry, BatchShuffleReadBufferPool bufferPool, ScheduledExecutorService ioExecutor, List<TierShuffleDescriptor> shuffleDescriptors, int maxRequestedBuffers, BufferCompressor bufferCompressor)Creates the producer-side agent of a Tier.TieredStorageMemorySpecgetConsumerAgentMemorySpec()Get theTieredStorageMemorySpecof the consumer-side agent.TieredStorageMemorySpecgetMasterAgentMemorySpec()Get theTieredStorageMemorySpecof the master-side agent.TieredStorageMemorySpecgetProducerAgentMemorySpec()Get theTieredStorageMemorySpecof the producer-side agent.voidsetup(org.apache.flink.configuration.Configuration configuration)Sets up the tier factory based on theConfiguration.
-
-
-
Method Detail
-
setup
public void setup(org.apache.flink.configuration.Configuration configuration)
Description copied from interface:TierFactorySets up the tier factory based on theConfiguration.- Specified by:
setupin interfaceTierFactory
-
getMasterAgentMemorySpec
public TieredStorageMemorySpec getMasterAgentMemorySpec()
Description copied from interface:TierFactoryGet theTieredStorageMemorySpecof the master-side agent.- Specified by:
getMasterAgentMemorySpecin interfaceTierFactory
-
getProducerAgentMemorySpec
public TieredStorageMemorySpec getProducerAgentMemorySpec()
Description copied from interface:TierFactoryGet theTieredStorageMemorySpecof the producer-side agent.- Specified by:
getProducerAgentMemorySpecin interfaceTierFactory
-
getConsumerAgentMemorySpec
public TieredStorageMemorySpec getConsumerAgentMemorySpec()
Description copied from interface:TierFactoryGet theTieredStorageMemorySpecof the consumer-side agent.- Specified by:
getConsumerAgentMemorySpecin interfaceTierFactory
-
createMasterAgent
public TierMasterAgent createMasterAgent(TieredStorageResourceRegistry tieredStorageResourceRegistry)
Description copied from interface:TierFactoryCreates the master-side agent of a Tier.- Specified by:
createMasterAgentin interfaceTierFactory
-
createProducerAgent
public TierProducerAgent createProducerAgent(int numPartitions, int numSubpartitions, TieredStoragePartitionId partitionID, String dataFileBasePath, boolean isBroadcastOnly, TieredStorageMemoryManager memoryManager, TieredStorageNettyService nettyService, TieredStorageResourceRegistry resourceRegistry, BatchShuffleReadBufferPool bufferPool, ScheduledExecutorService ioExecutor, List<TierShuffleDescriptor> shuffleDescriptors, int maxRequestedBuffers, @Nullable BufferCompressor bufferCompressor)
Description copied from interface:TierFactoryCreates the producer-side agent of a Tier.- Specified by:
createProducerAgentin interfaceTierFactory
-
createConsumerAgent
public TierConsumerAgent createConsumerAgent(List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<TierShuffleDescriptor> shuffleDescriptors, TieredStorageNettyService nettyService)
Description copied from interface:TierFactoryCreates the consumer-side agent of a Tier.- Specified by:
createConsumerAgentin interfaceTierFactory
-
-