public class LegacyStandaloneClusterDescriptor extends Object implements ClusterDescriptor<StandaloneClusterId>
| Constructor and Description |
|---|
LegacyStandaloneClusterDescriptor(org.apache.flink.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
StandaloneClusterClient |
deployJobCluster(ClusterSpecification clusterSpecification,
org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
boolean detached)
Deploys a per-job cluster with the given job on the cluster.
|
StandaloneClusterClient |
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.
|
StandaloneClusterClient |
retrieve(StandaloneClusterId standaloneClusterId)
Retrieves an existing Flink Cluster.
|
public LegacyStandaloneClusterDescriptor(org.apache.flink.configuration.Configuration config)
public String getClusterDescription()
ClusterDescriptorgetClusterDescription in interface ClusterDescriptor<StandaloneClusterId>public StandaloneClusterClient retrieve(StandaloneClusterId standaloneClusterId) throws ClusterRetrieveException
ClusterDescriptorretrieve in interface ClusterDescriptor<StandaloneClusterId>standaloneClusterId - The unique identifier of the running clusterClusterRetrieveException - if the cluster client could not be retrievedpublic StandaloneClusterClient deploySessionCluster(ClusterSpecification clusterSpecification)
ClusterDescriptordeploySessionCluster in interface ClusterDescriptor<StandaloneClusterId>clusterSpecification - Cluster specification defining the cluster to deploypublic StandaloneClusterClient deployJobCluster(ClusterSpecification clusterSpecification, org.apache.flink.runtime.jobgraph.JobGraph jobGraph, boolean detached)
ClusterDescriptordeployJobCluster in interface 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 in interface ClusterDescriptor<StandaloneClusterId>clusterId - identifying the cluster to shut downorg.apache.flink.util.FlinkException - if the cluster could not be terminatedpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.