@Internal
public interface ClusterClientFactory<ClusterID>
| Modifier and Type | Method and Description |
|---|---|
ClusterDescriptor<ClusterID> |
createClusterDescriptor(org.apache.flink.configuration.Configuration configuration)
Create a
ClusterDescriptor from the given configuration. |
default Optional<String> |
getApplicationTargetName()
Returns the option to be used when trying to execute an application in Application Mode using
this cluster client factory, or an
Optional.empty() if the environment of this
cluster client factory does not support Application Mode. |
ClusterID |
getClusterId(org.apache.flink.configuration.Configuration configuration)
Returns the cluster id if a cluster id is specified in the provided configuration, otherwise
it returns
null. |
ClusterSpecification |
getClusterSpecification(org.apache.flink.configuration.Configuration configuration)
Returns the
ClusterSpecification specified by the configuration and the command line
options. |
boolean |
isCompatibleWith(org.apache.flink.configuration.Configuration configuration)
Returns
true if the current ClusterClientFactory is compatible with the
provided configuration, false otherwise. |
boolean isCompatibleWith(org.apache.flink.configuration.Configuration configuration)
true if the current ClusterClientFactory is compatible with the
provided configuration, false otherwise.ClusterDescriptor<ClusterID> createClusterDescriptor(org.apache.flink.configuration.Configuration configuration)
ClusterDescriptor from the given configuration.configuration - containing the configuration options relevant for the ClusterDescriptorClusterDescriptor.@Nullable ClusterID getClusterId(org.apache.flink.configuration.Configuration configuration)
null.
A cluster id identifies a running cluster, e.g. the Yarn application id for a Flink cluster running on Yarn.
configuration - containing the configuration options relevant for the cluster id
retrievalClusterSpecification getClusterSpecification(org.apache.flink.configuration.Configuration configuration)
ClusterSpecification specified by the configuration and the command line
options. This specification can be used to deploy a new Flink cluster.configuration - containing the configuration options relevant for the ClusterSpecificationClusterSpecification for a new Flink clusterdefault Optional<String> getApplicationTargetName()
Optional.empty() if the environment of this
cluster client factory does not support Application Mode.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.