public class StandaloneClusterDescriptor extends Object implements ClusterDescriptor<StandaloneClusterId>
| 构造器和说明 |
|---|
StandaloneClusterDescriptor(org.apache.flink.configuration.Configuration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ClusterClientProvider<StandaloneClusterId> |
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<StandaloneClusterId> |
deploySessionCluster(ClusterSpecification clusterSpecification)
Triggers deployment of a cluster.
|
String |
getClusterDescription()
Returns a String containing details about the cluster (NodeManagers, available memory, ...).
|
void |
killCluster(StandaloneClusterId clusterId)
Terminates the cluster with the given cluster id.
|
ClusterClientProvider<StandaloneClusterId> |
retrieve(StandaloneClusterId standaloneClusterId)
Retrieves an existing Flink Cluster.
|
public StandaloneClusterDescriptor(org.apache.flink.configuration.Configuration config)
public String getClusterDescription()
ClusterDescriptorpublic ClusterClientProvider<StandaloneClusterId> retrieve(StandaloneClusterId standaloneClusterId) throws ClusterRetrieveException
ClusterDescriptorretrieve 在接口中 ClusterDescriptor<StandaloneClusterId>standaloneClusterId - The unique identifier of the running clusterClusterRetrieveException - if the cluster client could not be retrievedpublic ClusterClientProvider<StandaloneClusterId> deploySessionCluster(ClusterSpecification clusterSpecification)
ClusterDescriptordeploySessionCluster 在接口中 ClusterDescriptor<StandaloneClusterId>clusterSpecification - Cluster specification defining the cluster to deploypublic ClusterClientProvider<StandaloneClusterId> deployJobCluster(ClusterSpecification clusterSpecification, org.apache.flink.runtime.jobgraph.JobGraph jobGraph, boolean detached)
ClusterDescriptordeployJobCluster 在接口中 ClusterDescriptor<StandaloneClusterId>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 falsepublic void killCluster(StandaloneClusterId clusterId) throws org.apache.flink.util.FlinkException
ClusterDescriptorkillCluster 在接口中 ClusterDescriptor<StandaloneClusterId>clusterId - identifying the cluster to shut downorg.apache.flink.util.FlinkException - if the cluster could not be terminatedpublic void close()
close 在接口中 AutoCloseableclose 在接口中 ClusterDescriptor<StandaloneClusterId>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.