Class RemoteTierFactory
java.lang.Object
org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.remote.RemoteTierFactory
- All Implemented Interfaces:
TierFactory
The implementation of
TierFactory for remote tier.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConsumerAgent(List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs, List<TierShuffleDescriptor> shuffleDescriptors, TieredStorageNettyService nettyService) Creates the consumer-side agent of a Tier.createMasterAgent(TieredStorageResourceRegistry resourceRegistry) 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 maxRequestedBuffers, 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.
-
Constructor Details
-
RemoteTierFactory
public RemoteTierFactory()
-
-
Method Details
-
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
Description copied from interface:TierFactoryGet theTieredStorageMemorySpecof the master-side agent.- Specified by:
getMasterAgentMemorySpecin interfaceTierFactory
-
getProducerAgentMemorySpec
Description copied from interface:TierFactoryGet theTieredStorageMemorySpecof the producer-side agent.- Specified by:
getProducerAgentMemorySpecin interfaceTierFactory
-
getConsumerAgentMemorySpec
Description copied from interface:TierFactoryGet theTieredStorageMemorySpecof the consumer-side agent.- Specified by:
getConsumerAgentMemorySpecin interfaceTierFactory
-
createMasterAgent
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 storageMemoryManager, 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
-
identifier
Description copied from interface:TierFactoryThe unique identifier of this tier.- Specified by:
identifierin interfaceTierFactory
-