Class ApplicationObserver
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.observer.AbstractFlinkResourceObserver<FlinkDeployment,FlinkDeploymentObserverContext>
-
- org.apache.flink.kubernetes.operator.observer.deployment.AbstractFlinkDeploymentObserver
-
- org.apache.flink.kubernetes.operator.observer.deployment.ApplicationObserver
-
- All Implemented Interfaces:
Observer<FlinkDeployment>
public class ApplicationObserver extends AbstractFlinkDeploymentObserver
The observer ofMode.APPLICATION
cluster.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.kubernetes.operator.observer.deployment.AbstractFlinkDeploymentObserver
flinkService, logger
-
Fields inherited from class org.apache.flink.kubernetes.operator.observer.AbstractFlinkResourceObserver
configManager, eventRecorder
-
-
Constructor Summary
Constructors Constructor Description ApplicationObserver(FlinkService flinkService, FlinkConfigManager configManager, EventRecorder eventRecorder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
observeFlinkCluster(FlinkDeployment flinkApp, io.javaoperatorsdk.operator.api.reconciler.Context<?> context, FlinkDeploymentObserverContext observerContext)
Observe the flinkApp status when the cluster is ready.-
Methods inherited from class org.apache.flink.kubernetes.operator.observer.deployment.AbstractFlinkDeploymentObserver
clearErrorsIfDeploymentIsHealthy, getObserverContext, isJmDeploymentReady, isSuspendedJob, observeInternal, observeJmDeployment, updateStatusToDeployedIfAlreadyUpgraded
-
Methods inherited from class org.apache.flink.kubernetes.operator.observer.AbstractFlinkResourceObserver
isResourceReadyToBeObserved, observe
-
-
-
-
Constructor Detail
-
ApplicationObserver
public ApplicationObserver(FlinkService flinkService, FlinkConfigManager configManager, EventRecorder eventRecorder)
-
-
Method Detail
-
observeFlinkCluster
protected void observeFlinkCluster(FlinkDeployment flinkApp, io.javaoperatorsdk.operator.api.reconciler.Context<?> context, FlinkDeploymentObserverContext observerContext)
Description copied from class:AbstractFlinkDeploymentObserver
Observe 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:
observeFlinkCluster
in classAbstractFlinkDeploymentObserver
- Parameters:
flinkApp
- the target flinkDeployment resourcecontext
- the context with which the operation is executedobserverContext
- Observer context
-
-