类 AbstractFlinkResourceObserver<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<?,?>>
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.observer.AbstractFlinkResourceObserver<CR>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected EventRecordereventRecorderprotected org.slf4j.Loggerlogger
-
构造器概要
构造器 构造器 说明 AbstractFlinkResourceObserver(EventRecorder eventRecorder)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract booleancheckIfAlreadyUpgraded(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.protected booleanisResourceReadyToBeObserved(FlinkResourceContext<CR> ctx)Check whether the resource should be observed.voidobserve(FlinkResourceContext<CR> ctx)Observe the flinkApp status, It will reflect the changed status on the flinkApp resource.protected abstract voidobserveInternal(FlinkResourceContext<CR> ctx)Internal observer logic specific to each resource type.
-
-
-
字段详细资料
-
logger
protected final org.slf4j.Logger logger
-
eventRecorder
protected final EventRecorder eventRecorder
-
-
构造器详细资料
-
AbstractFlinkResourceObserver
public AbstractFlinkResourceObserver(EventRecorder eventRecorder)
-
-
方法详细资料
-
observe
public final void observe(FlinkResourceContext<CR> ctx)
从接口复制的说明:ObserverObserve the flinkApp status, It will reflect the changed status on the flinkApp resource.
-
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.
-
-