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 NettyShuffleEnvironment
createNettyShuffleEnvironment(NettyShuffleEnvironmentConfiguration config, ResourceID taskExecutorResourceId, TaskEventPublisher taskEventPublisher, ResultPartitionManager resultPartitionManager, ConnectionManager connectionManager, MetricGroup metricGroup, Executor ioExecutor, int numberOfSlots, String[] tmpDirPaths)
NettyShuffleEnvironment
createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext)
Factory method to create a specific localShuffleEnvironment
implementation.NettyShuffleMaster
createShuffleMaster(ShuffleMasterContext shuffleMasterContext)
Factory method to create a specificShuffleMaster
implementation.
-
-
-
Method Detail
-
createShuffleMaster
public NettyShuffleMaster createShuffleMaster(ShuffleMasterContext shuffleMasterContext)
Description copied from interface:ShuffleServiceFactory
Factory method to create a specificShuffleMaster
implementation.- Specified by:
createShuffleMaster
in 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:ShuffleServiceFactory
Factory method to create a specific localShuffleEnvironment
implementation.- Specified by:
createShuffleEnvironment
in 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, MetricGroup metricGroup, Executor ioExecutor, int numberOfSlots, String[] tmpDirPaths)
-
-