Class DefaultClusterClientServiceLoader
- java.lang.Object
-
- org.apache.flink.client.deployment.DefaultClusterClientServiceLoader
-
- All Implemented Interfaces:
ClusterClientServiceLoader
@Internal public class DefaultClusterClientServiceLoader extends Object implements ClusterClientServiceLoader
A service provider forcluster client factories.
-
-
Constructor Summary
Constructors Constructor Description DefaultClusterClientServiceLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<String>getApplicationModeTargetNames()Loads and returns a stream of the names of all available execution target names forApplication Mode.<ClusterID>
ClusterClientFactory<ClusterID>getClusterClientFactory(org.apache.flink.configuration.Configuration configuration)Discovers the appropriateClusterClientFactorybased on the provided configuration.
-
-
-
Method Detail
-
getClusterClientFactory
public <ClusterID> ClusterClientFactory<ClusterID> getClusterClientFactory(org.apache.flink.configuration.Configuration configuration)
Description copied from interface:ClusterClientServiceLoaderDiscovers the appropriateClusterClientFactorybased on the provided configuration.- Specified by:
getClusterClientFactoryin interfaceClusterClientServiceLoader- Parameters:
configuration- the configuration based on which the appropriate factory is going to be used.- Returns:
- the appropriate
ClusterClientFactory.
-
getApplicationModeTargetNames
public Stream<String> getApplicationModeTargetNames()
Description copied from interface:ClusterClientServiceLoaderLoads and returns a stream of the names of all available execution target names forApplication Mode.- Specified by:
getApplicationModeTargetNamesin interfaceClusterClientServiceLoader
-
-