@Internal
public interface ClusterClientFactory<ClusterID>
| 限定符和类型 | 方法和说明 |
|---|---|
ClusterDescriptor<ClusterID> |
createClusterDescriptor(org.apache.flink.configuration.Configuration configuration)
Create a
ClusterDescriptor from the given configuration. |
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 clusterCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.