Class FlinkSessionJobObserver

  • All Implemented Interfaces:
    Observer<org.apache.flink.kubernetes.operator.api.FlinkSessionJob>

    public class FlinkSessionJobObserver
    extends AbstractFlinkResourceObserver<org.apache.flink.kubernetes.operator.api.FlinkSessionJob>
    The observer of FlinkSessionJob.
    • Constructor Detail

      • FlinkSessionJobObserver

        public FlinkSessionJobObserver​(EventRecorder eventRecorder)
    • Method Detail

      • isResourceReadyToBeObserved

        protected boolean isResourceReadyToBeObserved​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkSessionJob> ctx)
        Description copied from class: AbstractFlinkResourceObserver
        Check whether the resource should be observed. In certain states such as suspended applications or in-progress upgrades and rollbacks, observing is not necessary.
        Overrides:
        isResourceReadyToBeObserved in class AbstractFlinkResourceObserver<org.apache.flink.kubernetes.operator.api.FlinkSessionJob>
        Parameters:
        ctx - Resource context
        Returns:
        True if we should observe the resource
      • checkIfAlreadyUpgraded

        protected boolean checkIfAlreadyUpgraded​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkSessionJob> ctx)
        Description copied from class: AbstractFlinkResourceObserver
        Checks a resource that is currently in the UPGRADING state whether it was already deployed but we simply miss the status information. After comparing the target resource generation with the one from the possible deployment if they match we update the status to the already DEPLOYED state.
        Specified by:
        checkIfAlreadyUpgraded in class AbstractFlinkResourceObserver<org.apache.flink.kubernetes.operator.api.FlinkSessionJob>
        Parameters:
        ctx - Context for resource.