Package org.apache.flink.runtime.shuffle
Interface ShuffleServiceFactory<SD extends ShuffleDescriptor,P extends ResultPartitionWriter,G extends IndexedInputGate>
-
- Type Parameters:
SD
- partition shuffle descriptor used for producer/consumer deployment and their data exchange.P
- type of provided result partition writersG
- type of provided input gates
- All Known Implementing Classes:
NettyShuffleServiceFactory
public interface ShuffleServiceFactory<SD extends ShuffleDescriptor,P extends ResultPartitionWriter,G extends IndexedInputGate>
Interface for shuffle service factory implementations.This component is a light-weight factory for
ShuffleMaster
andShuffleEnvironment
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShuffleEnvironment<P,G>
createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext)
Factory method to create a specific localShuffleEnvironment
implementation.ShuffleMaster<SD>
createShuffleMaster(ShuffleMasterContext shuffleMasterContext)
Factory method to create a specificShuffleMaster
implementation.
-
-
-
Method Detail
-
createShuffleMaster
ShuffleMaster<SD> createShuffleMaster(ShuffleMasterContext shuffleMasterContext)
Factory method to create a specificShuffleMaster
implementation.- Parameters:
shuffleMasterContext
- shuffle context for shuffle master.- Returns:
- shuffle manager implementation
-
createShuffleEnvironment
ShuffleEnvironment<P,G> createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext)
Factory method to create a specific localShuffleEnvironment
implementation.- Parameters:
shuffleEnvironmentContext
- local context- Returns:
- local shuffle service environment implementation
-
-