public interface ClusterDescriptor<ClientType extends ClusterClient>
Modifier and Type | Method and Description |
---|---|
ClientType |
deployJobCluster(ClusterSpecification clusterSpecification,
JobGraph jobGraph)
Deploys a per-job cluster with the given job on the cluster.
|
ClientType |
deploySessionCluster(ClusterSpecification clusterSpecification)
Triggers deployment of a cluster.
|
String |
getClusterDescription()
Returns a String containing details about the cluster (NodeManagers, available memory, ...).
|
ClientType |
retrieve(String applicationID)
Retrieves an existing Flink Cluster.
|
String getClusterDescription()
ClientType retrieve(String applicationID) throws UnsupportedOperationException
applicationID
- The unique application identifier of the running clusterUnsupportedOperationException
- if this cluster descriptor doesn't support the operationClientType deploySessionCluster(ClusterSpecification clusterSpecification) throws UnsupportedOperationException
clusterSpecification
- Cluster specification defining the cluster to deployUnsupportedOperationException
- if this cluster descriptor doesn't support the operationClientType deployJobCluster(ClusterSpecification clusterSpecification, JobGraph jobGraph)
clusterSpecification
- Initial cluster specification with which the Flink cluster is launchedjobGraph
- JobGraph with which the job cluster is startedClusterDeploymentException
- if the cluster could not be deployedCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.