Class NativeFlinkService
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.service.AbstractFlinkService
-
- org.apache.flink.kubernetes.operator.service.NativeFlinkService
-
- All Implemented Interfaces:
FlinkService
public class NativeFlinkService extends AbstractFlinkService
Implementation ofFlinkServicesubmitting and interacting with Native Kubernetes Flink clusters and jobs.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.kubernetes.operator.service.AbstractFlinkService
artifactManager, configManager, kubernetesClient
-
-
Constructor Summary
Constructors Constructor Description NativeFlinkService(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, FlinkConfigManager configManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelJob(org.apache.flink.kubernetes.operator.api.FlinkDeployment deployment, org.apache.flink.kubernetes.operator.api.spec.UpgradeMode upgradeMode, org.apache.flink.configuration.Configuration configuration)protected voiddeleteClusterInternal(io.fabric8.kubernetes.api.model.ObjectMeta meta, boolean deleteHaConfigmaps)Delete Flink kubernetes cluster by deleting the kubernetes resources directly.protected voiddeployApplicationCluster(org.apache.flink.kubernetes.operator.api.spec.JobSpec jobSpec, org.apache.flink.configuration.Configuration conf)protected io.fabric8.kubernetes.api.model.PodListgetJmPodList(java.lang.String namespace, java.lang.String clusterId)protected voidsubmitClusterInternal(org.apache.flink.configuration.Configuration conf)voidsubmitSessionCluster(org.apache.flink.configuration.Configuration conf)-
Methods inherited from class org.apache.flink.kubernetes.operator.service.AbstractFlinkService
cancelJob, cancelSessionJob, deleteClusterDeployment, disposeSavepoint, fetchSavepointInfo, getClusterClient, getClusterInfo, getEffectiveStatus, getJmPodList, getKubernetesClient, getLastCheckpoint, getMetrics, isHaMetadataAvailable, isJobManagerPortReady, listJobs, removeOperatorConfigs, requestJobResult, submitApplicationCluster, submitJobToSessionCluster, triggerSavepoint, updateStatusAfterClusterDeletion, waitForClusterShutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.kubernetes.operator.service.FlinkService
scale
-
-
-
-
Constructor Detail
-
NativeFlinkService
public NativeFlinkService(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, FlinkConfigManager configManager)
-
-
Method Detail
-
deployApplicationCluster
protected void deployApplicationCluster(org.apache.flink.kubernetes.operator.api.spec.JobSpec jobSpec, org.apache.flink.configuration.Configuration conf) throws java.lang.Exception- Specified by:
deployApplicationClusterin classAbstractFlinkService- Throws:
java.lang.Exception
-
submitSessionCluster
public void submitSessionCluster(org.apache.flink.configuration.Configuration conf) throws java.lang.Exception- Throws:
java.lang.Exception
-
cancelJob
public void cancelJob(org.apache.flink.kubernetes.operator.api.FlinkDeployment deployment, org.apache.flink.kubernetes.operator.api.spec.UpgradeMode upgradeMode, org.apache.flink.configuration.Configuration configuration) throws java.lang.Exception- Throws:
java.lang.Exception
-
getJmPodList
protected io.fabric8.kubernetes.api.model.PodList getJmPodList(java.lang.String namespace, java.lang.String clusterId)- Specified by:
getJmPodListin classAbstractFlinkService
-
submitClusterInternal
protected void submitClusterInternal(org.apache.flink.configuration.Configuration conf) throws java.lang.Exception- Throws:
java.lang.Exception
-
deleteClusterInternal
protected void deleteClusterInternal(io.fabric8.kubernetes.api.model.ObjectMeta meta, boolean deleteHaConfigmaps)Description copied from class:AbstractFlinkServiceDelete Flink kubernetes cluster by deleting the kubernetes resources directly. Optionally allows deleting the native kubernetes HA resources as well.- Specified by:
deleteClusterInternalin classAbstractFlinkService- Parameters:
meta- ObjectMeta of the deploymentdeleteHaConfigmaps- Flag to indicate whether k8s HA metadata should be removed as well
-
-