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
ShuffleMasterandShuffleEnvironment.
-
-
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 localShuffleEnvironmentimplementation.ShuffleMaster<SD>createShuffleMaster(ShuffleMasterContext shuffleMasterContext)Factory method to create a specificShuffleMasterimplementation.
-
-
-
Method Detail
-
createShuffleMaster
ShuffleMaster<SD> createShuffleMaster(ShuffleMasterContext shuffleMasterContext)
Factory method to create a specificShuffleMasterimplementation.- Parameters:
shuffleMasterContext- shuffle context for shuffle master.- Returns:
- shuffle manager implementation
-
createShuffleEnvironment
ShuffleEnvironment<P,G> createShuffleEnvironment(ShuffleEnvironmentContext shuffleEnvironmentContext)
Factory method to create a specific localShuffleEnvironmentimplementation.- Parameters:
shuffleEnvironmentContext- local context- Returns:
- local shuffle service environment implementation
-
-