类 AbstractJobReconciler<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<SPEC,​STATUS>,​SPEC extends org.apache.flink.kubernetes.operator.api.spec.AbstractFlinkSpec,​STATUS extends org.apache.flink.kubernetes.operator.api.status.CommonStatus<SPEC>>

  • 所有已实现的接口:
    Reconciler<CR>
    直接已知子类:
    ApplicationReconciler, SessionJobReconciler

    public abstract class AbstractJobReconciler<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<SPEC,​STATUS>,​SPEC extends org.apache.flink.kubernetes.operator.api.spec.AbstractFlinkSpec,​STATUS extends org.apache.flink.kubernetes.operator.api.status.CommonStatus<SPEC>>
    extends AbstractFlinkResourceReconciler<CR,​SPEC,​STATUS>
    Reconciler responsible for handling the job lifecycle according to the desired and current states.
    • 方法详细资料

      • readyToReconcile

        public boolean readyToReconcile​(FlinkResourceContext<CR> ctx)
        从类复制的说明: AbstractFlinkResourceReconciler
        Check whether the given Flink resource is ready to be reconciled or we are still waiting for any pending operation or condition first.
        指定者:
        readyToReconcile 在类中 AbstractFlinkResourceReconciler<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<SPEC,​STATUS>,​SPEC extends org.apache.flink.kubernetes.operator.api.spec.AbstractFlinkSpec,​STATUS extends org.apache.flink.kubernetes.operator.api.status.CommonStatus<SPEC>>
        参数:
        ctx - Reconciliation context.
        返回:
        True if the resource is ready to be reconciled.
      • reconcileSpecChange

        protected boolean reconcileSpecChange​(FlinkResourceContext<CR> ctx,
                                              org.apache.flink.configuration.Configuration deployConfig)
                                       throws java.lang.Exception
        从类复制的说明: AbstractFlinkResourceReconciler
        Reconcile spec upgrade on the currently deployed/suspended Flink resource and update the status accordingly.
        指定者:
        reconcileSpecChange 在类中 AbstractFlinkResourceReconciler<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<SPEC,​STATUS>,​SPEC extends org.apache.flink.kubernetes.operator.api.spec.AbstractFlinkSpec,​STATUS extends org.apache.flink.kubernetes.operator.api.status.CommonStatus<SPEC>>
        参数:
        ctx - Reconciliation context.
        deployConfig - Deployment configuration.
        返回:
        True if spec change reconciliation was executed
        抛出:
        java.lang.Exception - Error during spec upgrade.
      • restoreJob

        protected void restoreJob​(FlinkResourceContext<CR> ctx,
                                  SPEC spec,
                                  org.apache.flink.configuration.Configuration deployConfig,
                                  boolean requireHaMetadata)
                           throws java.lang.Exception
        抛出:
        java.lang.Exception
      • reconcileOtherChanges

        public boolean reconcileOtherChanges​(FlinkResourceContext<CR> ctx)
                                      throws java.lang.Exception
        从类复制的说明: AbstractFlinkResourceReconciler
        Reconcile any other changes required for this resource that are specific to the reconciler implementation.
        指定者:
        reconcileOtherChanges 在类中 AbstractFlinkResourceReconciler<CR extends org.apache.flink.kubernetes.operator.api.AbstractFlinkResource<SPEC,​STATUS>,​SPEC extends org.apache.flink.kubernetes.operator.api.spec.AbstractFlinkSpec,​STATUS extends org.apache.flink.kubernetes.operator.api.status.CommonStatus<SPEC>>
        参数:
        ctx - Reconciliation context.
        返回:
        True if any further reconciliation action was taken.
        抛出:
        java.lang.Exception - Error during reconciliation.
      • resubmitJob

        protected void resubmitJob​(FlinkResourceContext<CR> ctx,
                                   boolean requireHaMetadata)
                            throws java.lang.Exception
        抛出:
        java.lang.Exception
      • cancelJob

        protected abstract void cancelJob​(FlinkResourceContext<CR> ctx,
                                          org.apache.flink.kubernetes.operator.api.spec.UpgradeMode upgradeMode)
                                   throws java.lang.Exception
        Cancel the job for the given resource using the specified upgrade mode.
        参数:
        ctx - Reconciler context.
        upgradeMode - Upgrade mode used during cancel.
        抛出:
        java.lang.Exception - Error during cancellation.
      • cleanupAfterFailedJob

        protected abstract void cleanupAfterFailedJob​(FlinkResourceContext<CR> ctx)
                                               throws java.lang.Exception
        Removes a failed job.
        参数:
        ctx - Reconciler context.
        抛出:
        java.lang.Exception - Error during cancellation.