T - Type of the cluster idpublic interface ClusterDescriptor<T> extends AutoCloseable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ClusterClientProvider<T> |
deployJobCluster(ClusterSpecification clusterSpecification,
org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
boolean detached)
Deploys a per-job cluster with the given job on the cluster.
|
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> deployJobCluster(ClusterSpecification clusterSpecification, org.apache.flink.runtime.jobgraph.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 org.apache.flink.util.FlinkException
clusterId - identifying the cluster to shut downorg.apache.flink.util.FlinkException - if the cluster could not be terminatedvoid close()
close 在接口中 AutoCloseableCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.