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 specific
ClusterDescriptor implementation.-
Constructor Summary
ConstructorsConstructorDescriptionKubernetesClusterDescriptor(org.apache.flink.configuration.Configuration flinkConfig, FlinkKubeClientFactory clientFactory, KubernetesArtifactUploader artifactUploader) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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) voidkillCluster(String clusterId) org.apache.flink.client.program.ClusterClientProvider<String>
-
Constructor Details
-
KubernetesClusterDescriptor
public KubernetesClusterDescriptor(org.apache.flink.configuration.Configuration flinkConfig, FlinkKubeClientFactory clientFactory, KubernetesArtifactUploader artifactUploader)
-
-
Method Details
-
getClusterDescription
- Specified by:
getClusterDescriptionin interfaceorg.apache.flink.client.deployment.ClusterDescriptor<String>
-
retrieve
- 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
- 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>
-