Class StandaloneClientFactory
java.lang.Object
org.apache.flink.client.deployment.StandaloneClientFactory
- All Implemented Interfaces:
ClusterClientFactory<StandaloneClusterId>
@Internal
public class StandaloneClientFactory
extends Object
implements ClusterClientFactory<StandaloneClusterId>
A
ClusterClientFactory for a standalone cluster, i.e. Flink on bare-metal.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClusterDescriptor(org.apache.flink.configuration.Configuration configuration) Create aClusterDescriptorfrom the given configuration.getClusterId(org.apache.flink.configuration.Configuration configuration) Returns the cluster id if a cluster id is specified in the provided configuration, otherwise it returnsnull.getClusterSpecification(org.apache.flink.configuration.Configuration configuration) Returns theClusterSpecificationspecified by the configuration and the command line options.booleanisCompatibleWith(org.apache.flink.configuration.Configuration configuration) Returnstrueif the currentClusterClientFactoryis compatible with the provided configuration,falseotherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.client.deployment.ClusterClientFactory
getApplicationTargetName
-
Constructor Details
-
StandaloneClientFactory
public StandaloneClientFactory()
-
-
Method Details
-
isCompatibleWith
public boolean isCompatibleWith(org.apache.flink.configuration.Configuration configuration) Description copied from interface:ClusterClientFactoryReturnstrueif the currentClusterClientFactoryis compatible with the provided configuration,falseotherwise.- Specified by:
isCompatibleWithin interfaceClusterClientFactory<StandaloneClusterId>
-
createClusterDescriptor
public StandaloneClusterDescriptor createClusterDescriptor(org.apache.flink.configuration.Configuration configuration) Description copied from interface:ClusterClientFactoryCreate aClusterDescriptorfrom the given configuration.- Specified by:
createClusterDescriptorin interfaceClusterClientFactory<StandaloneClusterId>- Parameters:
configuration- containing the configuration options relevant for theClusterDescriptor- Returns:
- the corresponding
ClusterDescriptor.
-
getClusterId
@Nullable public StandaloneClusterId getClusterId(org.apache.flink.configuration.Configuration configuration) Description copied from interface:ClusterClientFactoryReturns the cluster id if a cluster id is specified in the provided configuration, otherwise it returnsnull.A cluster id identifies a running cluster, e.g. the Yarn application id for a Flink cluster running on Yarn.
- Specified by:
getClusterIdin interfaceClusterClientFactory<StandaloneClusterId>- Parameters:
configuration- containing the configuration options relevant for the cluster id retrieval- Returns:
- Cluster id identifying the cluster to deploy jobs to or null
-
getClusterSpecification
public ClusterSpecification getClusterSpecification(org.apache.flink.configuration.Configuration configuration) Description copied from interface:ClusterClientFactoryReturns theClusterSpecificationspecified by the configuration and the command line options. This specification can be used to deploy a new Flink cluster.- Specified by:
getClusterSpecificationin interfaceClusterClientFactory<StandaloneClusterId>- Parameters:
configuration- containing the configuration options relevant for theClusterSpecification- Returns:
- the corresponding
ClusterSpecificationfor a new Flink cluster
-