Package org.apache.flink.kubernetes
Class KubernetesClusterDescriptor
- java.lang.Object
-
- org.apache.flink.kubernetes.KubernetesClusterDescriptor
-
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.client.deployment.ClusterDescriptor<String>
public class KubernetesClusterDescriptor extends Object implements org.apache.flink.client.deployment.ClusterDescriptor<String>
Kubernetes specificClusterDescriptorimplementation.
-
-
Constructor Summary
Constructors Constructor Description KubernetesClusterDescriptor(org.apache.flink.configuration.Configuration flinkConfig, FlinkKubeClientFactory clientFactory, KubernetesArtifactUploader artifactUploader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.flink.client.program.ClusterClientProvider<String>deployApplicationCluster(org.apache.flink.client.deployment.ClusterSpecification clusterSpecification, org.apache.flink.client.deployment.application.ApplicationConfiguration applicationConfiguration)org.apache.flink.client.program.ClusterClientProvider<String>deploySessionCluster(org.apache.flink.client.deployment.ClusterSpecification clusterSpecification)StringgetClusterDescription()voidkillCluster(String clusterId)org.apache.flink.client.program.ClusterClientProvider<String>retrieve(String clusterId)
-
-
-
Constructor Detail
-
KubernetesClusterDescriptor
public KubernetesClusterDescriptor(org.apache.flink.configuration.Configuration flinkConfig, FlinkKubeClientFactory clientFactory, KubernetesArtifactUploader artifactUploader)
-
-
Method Detail
-
getClusterDescription
public String getClusterDescription()
- Specified by:
getClusterDescriptionin interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>
-
retrieve
public org.apache.flink.client.program.ClusterClientProvider<String> retrieve(String clusterId)
- Specified by:
retrievein interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>
-
deploySessionCluster
public org.apache.flink.client.program.ClusterClientProvider<String> deploySessionCluster(org.apache.flink.client.deployment.ClusterSpecification clusterSpecification) throws org.apache.flink.client.deployment.ClusterDeploymentException
- Specified by:
deploySessionClusterin interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>- Throws:
org.apache.flink.client.deployment.ClusterDeploymentException
-
deployApplicationCluster
public org.apache.flink.client.program.ClusterClientProvider<String> deployApplicationCluster(org.apache.flink.client.deployment.ClusterSpecification clusterSpecification, org.apache.flink.client.deployment.application.ApplicationConfiguration applicationConfiguration) throws org.apache.flink.client.deployment.ClusterDeploymentException
- Specified by:
deployApplicationClusterin interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>- Throws:
org.apache.flink.client.deployment.ClusterDeploymentException
-
killCluster
public void killCluster(String clusterId) throws org.apache.flink.util.FlinkException
- Specified by:
killClusterin interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>- Throws:
org.apache.flink.util.FlinkException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>
-
-