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 Constructor Description NettyShuffleServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NettyShuffleEnvironmentcreateNettyShuffleEnvironment(NettyShuffleEnvironmentConfiguration config, ResourceID taskExecutorResourceId, TaskEventPublisher taskEventPublisher, ResultPartitionManager resultPartitionManager, ConnectionManager connectionManager, org.apache.flink.metrics.MetricGroup metricGroup, Executor ioExecutor, int numberOfSlots, String[] tmpDirPaths)NettyShuffleEnvironmentcreateShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext)Factory method to create a specific localShuffleEnvironmentimplementation.NettyShuffleMastercreateShuffleMaster(ShuffleMasterContext shuffleMasterContext)Factory method to create a specificShuffleMasterimplementation.
-
-
-
Method Detail
-
createShuffleMaster
public NettyShuffleMaster createShuffleMaster(ShuffleMasterContext shuffleMasterContext)
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)
-
-