类 AbstractFlinkResourceObserver<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<?,​?>>

    • 字段详细资料

      • logger

        protected final org.slf4j.Logger logger
    • 构造器详细资料

      • AbstractFlinkResourceObserver

        public AbstractFlinkResourceObserver​(EventRecorder eventRecorder)
    • 方法详细资料

      • observe

        public final void observe​(FlinkResourceContext<CR> ctx)
        从接口复制的说明: Observer
        Observe the flinkApp status, It will reflect the changed status on the flinkApp resource.
        指定者:
        observe 在接口中 Observer<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<?,​?>>
        参数:
        ctx - the context with which the operation is executed
      • isResourceReadyToBeObserved

        protected boolean isResourceReadyToBeObserved​(FlinkResourceContext<CR> ctx)
        Check whether the resource should be observed. In certain states such as suspended applications or in-progress upgrades and rollbacks, observing is not necessary.
        参数:
        ctx - Resource context
        返回:
        True if we should observe the resource
      • observeInternal

        protected abstract void observeInternal​(FlinkResourceContext<CR> ctx)
        Internal observer logic specific to each resource type.
        参数:
        ctx - Resource context
      • checkIfAlreadyUpgraded

        protected abstract boolean checkIfAlreadyUpgraded​(FlinkResourceContext<CR> ctx)
        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.
        参数:
        ctx - Context for resource.