Class SingleInputGateFactory
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.consumer.SingleInputGateFactory
-
public class SingleInputGateFactory extends Object
Factory forSingleInputGateto use inNettyShuffleEnvironment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSingleInputGateFactory.ChannelStatisticsStatistics of input channels.
-
Field Summary
Fields Modifier and Type Field Description protected intconfiguredNetworkBuffersPerChannelprotected ConnectionManagerconnectionManagerprotected NetworkBufferPoolnetworkBufferPoolprotected ResultPartitionManagerpartitionManagerprotected intpartitionRequestInitialBackoffprotected intpartitionRequestListenerTimeoutprotected intpartitionRequestMaxBackoffprotected TaskEventPublishertaskEventPublisherprotected ResourceIDtaskExecutorResourceId
-
Constructor Summary
Constructors Constructor Description SingleInputGateFactory(ResourceID taskExecutorResourceId, NettyShuffleEnvironmentConfiguration networkConfig, ConnectionManager connectionManager, ResultPartitionManager partitionManager, TaskEventPublisher taskEventPublisher, NetworkBufferPool networkBufferPool, TieredStorageConfiguration tieredStorageConfiguration, TieredStorageNettyServiceImpl tieredStorageNettyService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleInputGatecreate(ShuffleIOOwnerContext owner, int gateIndex, InputGateDeploymentDescriptor igdd, PartitionProducerStateProvider partitionProducerStateProvider, InputChannelMetrics metrics)Creates an input gate and all of its input channels.protected InputChannelcreateKnownInputChannel(SingleInputGate inputGate, int index, int buffersPerChannel, NettyShuffleDescriptor inputChannelDescriptor, ResultSubpartitionIndexSet subpartitionIndexSet, SingleInputGateFactory.ChannelStatistics channelStatistics, InputChannelMetrics metrics)
-
-
-
Field Detail
-
taskExecutorResourceId
@Nonnull protected final ResourceID taskExecutorResourceId
-
partitionRequestInitialBackoff
protected final int partitionRequestInitialBackoff
-
partitionRequestMaxBackoff
protected final int partitionRequestMaxBackoff
-
partitionRequestListenerTimeout
protected final int partitionRequestListenerTimeout
-
connectionManager
@Nonnull protected final ConnectionManager connectionManager
-
partitionManager
@Nonnull protected final ResultPartitionManager partitionManager
-
taskEventPublisher
@Nonnull protected final TaskEventPublisher taskEventPublisher
-
networkBufferPool
@Nonnull protected final NetworkBufferPool networkBufferPool
-
configuredNetworkBuffersPerChannel
protected final int configuredNetworkBuffersPerChannel
-
-
Constructor Detail
-
SingleInputGateFactory
public SingleInputGateFactory(@Nonnull ResourceID taskExecutorResourceId, @Nonnull NettyShuffleEnvironmentConfiguration networkConfig, @Nonnull ConnectionManager connectionManager, @Nonnull ResultPartitionManager partitionManager, @Nonnull TaskEventPublisher taskEventPublisher, @Nonnull NetworkBufferPool networkBufferPool, @Nullable TieredStorageConfiguration tieredStorageConfiguration, @Nullable TieredStorageNettyServiceImpl tieredStorageNettyService)
-
-
Method Detail
-
create
public SingleInputGate create(@Nonnull ShuffleIOOwnerContext owner, int gateIndex, @Nonnull InputGateDeploymentDescriptor igdd, @Nonnull PartitionProducerStateProvider partitionProducerStateProvider, @Nonnull InputChannelMetrics metrics)
Creates an input gate and all of its input channels.
-
createKnownInputChannel
@VisibleForTesting protected InputChannel createKnownInputChannel(SingleInputGate inputGate, int index, int buffersPerChannel, NettyShuffleDescriptor inputChannelDescriptor, ResultSubpartitionIndexSet subpartitionIndexSet, SingleInputGateFactory.ChannelStatistics channelStatistics, InputChannelMetrics metrics)
-
-