Interface TierFactory
- All Known Implementing Classes:
DiskTierFactory,MemoryTierFactory,RemoteTierFactory
public interface TierFactory
A factory that creates all the components of a tier.
-
Method Summary
Modifier and TypeMethodDescriptioncreateConsumerAgent(List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<TierShuffleDescriptor> shuffleDescriptors, TieredStorageNettyService nettyService) Creates the consumer-side agent of a Tier.createMasterAgent(TieredStorageResourceRegistry tieredStorageResourceRegistry) Creates the master-side agent of a Tier.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, BufferCompressor bufferCompressor) Creates the producer-side agent of a Tier.Get theTieredStorageMemorySpecof the consumer-side agent.Get theTieredStorageMemorySpecof the master-side agent.Get theTieredStorageMemorySpecof the producer-side agent.The unique identifier of this tier.voidsetup(org.apache.flink.configuration.Configuration configuration) Sets up the tier factory based on theConfiguration.
-
Method Details
-
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
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.
-