Class SessionObserver
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.observer.deployment.AbstractDeploymentObserver
-
- org.apache.flink.kubernetes.operator.observer.deployment.SessionObserver
-
- All Implemented Interfaces:
Observer<FlinkDeployment>
public class SessionObserver extends AbstractDeploymentObserver
The observer of theMode.SESSIONcluster.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.kubernetes.operator.observer.deployment.AbstractDeploymentObserver
configManager, eventRecorder, flinkService, logger
-
-
Constructor Summary
Constructors Constructor Description SessionObserver(FlinkService flinkService, FlinkConfigManager configManager, EventRecorder eventRecorder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidobserveFlinkCluster(FlinkDeployment deployment, io.javaoperatorsdk.operator.api.reconciler.Context context, org.apache.flink.configuration.Configuration deployedConfig)Observe the flinkApp status when the cluster is ready.-
Methods inherited from class org.apache.flink.kubernetes.operator.observer.deployment.AbstractDeploymentObserver
clearErrorsIfDeploymentIsHealthy, isJmDeploymentReady, isSuspendedJob, observe, observeJmDeployment
-
-
-
-
Constructor Detail
-
SessionObserver
public SessionObserver(FlinkService flinkService, FlinkConfigManager configManager, EventRecorder eventRecorder)
-
-
Method Detail
-
observeFlinkCluster
public void observeFlinkCluster(FlinkDeployment deployment, io.javaoperatorsdk.operator.api.reconciler.Context context, org.apache.flink.configuration.Configuration deployedConfig)
Description copied from class:AbstractDeploymentObserverObserve the flinkApp status when the cluster is ready. It will be implemented by child class to reflect the changed status on the flinkApp resource.- Specified by:
observeFlinkClusterin classAbstractDeploymentObserver- Parameters:
deployment- the target flinkDeployment resourcecontext- the context with which the operation is executeddeployedConfig- config that is deployed on the Flink cluster
-
-