Class NettyShuffleServiceFactory
java.lang.Object
org.apache.flink.runtime.io.network.NettyShuffleServiceFactory
- All Implemented Interfaces:
ShuffleServiceFactory<NettyShuffleDescriptor,ResultPartition, SingleInputGate>
public class NettyShuffleServiceFactory
extends Object
implements ShuffleServiceFactory<NettyShuffleDescriptor,ResultPartition,SingleInputGate>
Netty based shuffle service implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NettyShuffleEnvironmentcreateNettyShuffleEnvironment(NettyShuffleEnvironmentConfiguration config, ResourceID taskExecutorResourceId, TaskEventPublisher taskEventPublisher, ResultPartitionManager resultPartitionManager, ConnectionManager connectionManager, org.apache.flink.metrics.MetricGroup metricGroup, Executor ioExecutor, int numberOfSlots, String[] tmpDirPaths) createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext) Factory method to create a specific localShuffleEnvironmentimplementation.createShuffleMaster(ShuffleMasterContext shuffleMasterContext) Factory method to create a specificShuffleMasterimplementation.
-
Constructor Details
-
NettyShuffleServiceFactory
public NettyShuffleServiceFactory()
-
-
Method Details
-
createShuffleMaster
Description copied from interface:ShuffleServiceFactoryFactory method to create a specificShuffleMasterimplementation.- Specified by:
createShuffleMasterin interfaceShuffleServiceFactory<NettyShuffleDescriptor,ResultPartition, SingleInputGate> - Parameters:
shuffleMasterContext- shuffle context for shuffle master.- Returns:
- shuffle manager implementation
-
createShuffleEnvironment
public NettyShuffleEnvironment createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext) Description copied from interface:ShuffleServiceFactoryFactory method to create a specific localShuffleEnvironmentimplementation.- Specified by:
createShuffleEnvironmentin interfaceShuffleServiceFactory<NettyShuffleDescriptor,ResultPartition, SingleInputGate> - Parameters:
shuffleEnvironmentContext- local context- Returns:
- local shuffle service environment implementation
-
createNettyShuffleEnvironment
@VisibleForTesting public static NettyShuffleEnvironment createNettyShuffleEnvironment(NettyShuffleEnvironmentConfiguration config, ResourceID taskExecutorResourceId, TaskEventPublisher taskEventPublisher, ResultPartitionManager resultPartitionManager, ConnectionManager connectionManager, org.apache.flink.metrics.MetricGroup metricGroup, Executor ioExecutor, int numberOfSlots, String[] tmpDirPaths)
-