T
- Type of the cluster idpublic interface ClusterDescriptor<T> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
ClusterClientProvider<T> |
deployApplicationCluster(ClusterSpecification clusterSpecification,
ApplicationConfiguration applicationConfiguration)
Triggers deployment of an application cluster.
|
ClusterClientProvider<T> |
deployJobCluster(ClusterSpecification clusterSpecification,
JobGraph jobGraph,
boolean detached)
Deprecated.
Per-job mode has been deprecated in Flink 1.15 and will be removed in the future.
Please use application mode instead.
|
ClusterClientProvider<T> |
deploySessionCluster(ClusterSpecification clusterSpecification)
Triggers deployment of a cluster.
|
String |
getClusterDescription()
Returns a String containing details about the cluster (NodeManagers, available memory, ...).
|
void |
killCluster(T clusterId)
Terminates the cluster with the given cluster id.
|
ClusterClientProvider<T> |
retrieve(T clusterId)
Retrieves an existing Flink Cluster.
|
String getClusterDescription()
ClusterClientProvider<T> retrieve(T clusterId) throws ClusterRetrieveException
clusterId
- The unique identifier of the running clusterClusterRetrieveException
- if the cluster client could not be retrievedClusterClientProvider<T> deploySessionCluster(ClusterSpecification clusterSpecification) throws ClusterDeploymentException
clusterSpecification
- Cluster specification defining the cluster to deployClusterDeploymentException
- if the cluster could not be deployedClusterClientProvider<T> deployApplicationCluster(ClusterSpecification clusterSpecification, ApplicationConfiguration applicationConfiguration) throws ClusterDeploymentException
main()
of the
application's user code will be executed on the cluster, rather than the client.clusterSpecification
- Cluster specification defining the cluster to deployapplicationConfiguration
- Application-specific configuration parametersClusterDeploymentException
- if the cluster could not be deployed@Deprecated ClusterClientProvider<T> deployJobCluster(ClusterSpecification clusterSpecification, JobGraph jobGraph, boolean detached) throws ClusterDeploymentException
clusterSpecification
- Initial cluster specification with which the Flink cluster is
launchedjobGraph
- JobGraph with which the job cluster is starteddetached
- true if the cluster should be stopped after the job completion without
serving the result, otherwise falseClusterDeploymentException
- if the cluster could not be deployedvoid killCluster(T clusterId) throws FlinkException
clusterId
- identifying the cluster to shut downFlinkException
- if the cluster could not be terminatedvoid close()
close
in interface AutoCloseable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.