Interface TierFactory
-
- All Known Implementing Classes:
DiskTierFactory,MemoryTierFactory,RemoteTierFactory
public interface TierFactoryA factory that creates all the components of a tier.
-
-
Method Summary
All Methods Instance Methods Abstract 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 storageMemoryManager, TieredStorageNettyService nettyService, TieredStorageResourceRegistry resourceRegistry, BatchShuffleReadBufferPool bufferPool, ScheduledExecutorService ioExecutor, List<TierShuffleDescriptor> shuffleDescriptors, int maxRequestedBuffer, 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.Stringidentifier()The unique identifier of this tier.voidsetup(org.apache.flink.configuration.Configuration configuration)Sets up the tier factory based on theConfiguration.
-
-
-
Method Detail
-
setup
void setup(org.apache.flink.configuration.Configuration configuration)
Sets up the tier factory based on theConfiguration.
-
getMasterAgentMemorySpec
TieredStorageMemorySpec getMasterAgentMemorySpec()
Get theTieredStorageMemorySpecof the master-side agent.
-
getProducerAgentMemorySpec
TieredStorageMemorySpec getProducerAgentMemorySpec()
Get theTieredStorageMemorySpecof the producer-side agent.
-
getConsumerAgentMemorySpec
TieredStorageMemorySpec getConsumerAgentMemorySpec()
Get theTieredStorageMemorySpecof the consumer-side agent.
-
createMasterAgent
TierMasterAgent createMasterAgent(TieredStorageResourceRegistry tieredStorageResourceRegistry)
Creates the master-side agent of a Tier.
-
createProducerAgent
TierProducerAgent createProducerAgent(int numPartitions, int numSubpartitions, TieredStoragePartitionId partitionID, String dataFileBasePath, boolean isBroadcastOnly, TieredStorageMemoryManager storageMemoryManager, TieredStorageNettyService nettyService, TieredStorageResourceRegistry resourceRegistry, BatchShuffleReadBufferPool bufferPool, ScheduledExecutorService ioExecutor, List<TierShuffleDescriptor> shuffleDescriptors, int maxRequestedBuffer, @Nullable BufferCompressor bufferCompressor)
Creates the producer-side agent of a Tier.
-
createConsumerAgent
TierConsumerAgent createConsumerAgent(List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<TierShuffleDescriptor> shuffleDescriptors, TieredStorageNettyService nettyService)
Creates the consumer-side agent of a Tier.
-
identifier
String identifier()
The unique identifier of this tier.
-
-