Package org.apache.flink.core.execution
Class DefaultExecutorServiceLoader
- java.lang.Object
-
- org.apache.flink.core.execution.DefaultExecutorServiceLoader
-
- All Implemented Interfaces:
PipelineExecutorServiceLoader
@Internal public class DefaultExecutorServiceLoader extends Object implements PipelineExecutorServiceLoader
The default implementation of thePipelineExecutorServiceLoader. This implementation uses Java service discovery to find the availableexecutor factories.
-
-
Constructor Summary
Constructors Constructor Description DefaultExecutorServiceLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineExecutorFactorygetExecutorFactory(Configuration configuration)Loads thePipelineExecutorFactorywhich is compatible with the provided configuration.java.util.stream.Stream<String>getExecutorNames()Loads and returns a stream of the names of all available executors.
-
-
-
Method Detail
-
getExecutorFactory
public PipelineExecutorFactory getExecutorFactory(Configuration configuration)
Description copied from interface:PipelineExecutorServiceLoaderLoads thePipelineExecutorFactorywhich is compatible with the provided configuration. There can be at most one compatible factory among the available ones, otherwise an exception will be thrown.- Specified by:
getExecutorFactoryin interfacePipelineExecutorServiceLoader- Returns:
- a compatible
PipelineExecutorFactory.
-
getExecutorNames
public java.util.stream.Stream<String> getExecutorNames()
Description copied from interface:PipelineExecutorServiceLoaderLoads and returns a stream of the names of all available executors.- Specified by:
getExecutorNamesin interfacePipelineExecutorServiceLoader
-
-