Class SingleInputGateFactory
java.lang.Object
org.apache.flink.runtime.io.network.partition.consumer.SingleInputGateFactory
Factory for
SingleInputGate to use in NettyShuffleEnvironment.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classStatistics of input channels. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final ConnectionManagerprotected final NetworkBufferPoolprotected final ResultPartitionManagerprotected final intprotected final intprotected final intprotected final TaskEventPublisherprotected final ResourceID -
Constructor Summary
ConstructorsConstructorDescriptionSingleInputGateFactory(ResourceID taskExecutorResourceId, NettyShuffleEnvironmentConfiguration networkConfig, ConnectionManager connectionManager, ResultPartitionManager partitionManager, TaskEventPublisher taskEventPublisher, NetworkBufferPool networkBufferPool, TieredStorageConfiguration tieredStorageConfiguration, TieredStorageNettyServiceImpl tieredStorageNettyService) -
Method Summary
Modifier and TypeMethodDescriptioncreate(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 Details
-
taskExecutorResourceId
-
partitionRequestInitialBackoff
protected final int partitionRequestInitialBackoff -
partitionRequestMaxBackoff
protected final int partitionRequestMaxBackoff -
partitionRequestListenerTimeout
protected final int partitionRequestListenerTimeout -
connectionManager
-
partitionManager
-
taskEventPublisher
-
networkBufferPool
-
configuredNetworkBuffersPerChannel
protected final int configuredNetworkBuffersPerChannel
-
-
Constructor Details
-
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 Details
-
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)
-