Class AbstractDeploymentObserver

    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
    • Method Detail

      • observe

        public void observe​(FlinkDeployment flinkApp,
                            io.javaoperatorsdk.operator.api.reconciler.Context context)
        Description copied from interface: Observer
        Observe the flinkApp status, It will reflect the changed status on the flinkApp resource.
        Specified by:
        observe in interface Observer<FlinkDeployment>
        Parameters:
        flinkApp - the target custom resource
        context - the context with which the operation is executed
      • observeJmDeployment

        protected void observeJmDeployment​(FlinkDeployment flinkApp,
                                           io.javaoperatorsdk.operator.api.reconciler.Context context,
                                           org.apache.flink.configuration.Configuration effectiveConfig)
      • isJmDeploymentReady

        protected boolean isJmDeploymentReady​(FlinkDeployment dep)
      • clearErrorsIfDeploymentIsHealthy

        protected void clearErrorsIfDeploymentIsHealthy​(FlinkDeployment dep)
      • isSuspendedJob

        protected boolean isSuspendedJob​(FlinkDeployment deployment)
      • observeFlinkCluster

        protected abstract void observeFlinkCluster​(FlinkDeployment flinkApp,
                                                    io.javaoperatorsdk.operator.api.reconciler.Context context,
                                                    org.apache.flink.configuration.Configuration deployedConfig)
        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.
        Parameters:
        flinkApp - the target flinkDeployment resource
        context - the context with which the operation is executed
        deployedConfig - config that is deployed on the Flink cluster