类 ApplicationReconciler

  • 所有已实现的接口:
    Reconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment>

    public class ApplicationReconciler
    extends AbstractJobReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
    Reconciler Flink Application deployments.
    • 构造器详细资料

      • ApplicationReconciler

        public ApplicationReconciler​(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient,
                                     EventRecorder eventRecorder,
                                     StatusRecorder<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus> statusRecorder,
                                     JobAutoScalerFactory autoscalerFactory)
    • 方法详细资料

      • getAvailableUpgradeMode

        protected AbstractJobReconciler.AvailableUpgradeMode getAvailableUpgradeMode​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx,
                                                                                     org.apache.flink.configuration.Configuration deployConfig)
                                                                              throws java.lang.Exception
        覆盖:
        getAvailableUpgradeMode 在类中 AbstractJobReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
        抛出:
        java.lang.Exception
      • deploy

        public void deploy​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx,
                           org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec spec,
                           org.apache.flink.configuration.Configuration deployConfig,
                           java.util.Optional<java.lang.String> savepoint,
                           boolean requireHaMetadata)
                    throws java.lang.Exception
        从类复制的说明: AbstractFlinkResourceReconciler
        Deploys the target resource spec to Kubernetes.
        指定者:
        deploy 在类中 AbstractFlinkResourceReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
        参数:
        ctx - Reconciliation context.
        spec - Spec that should be deployed to Kubernetes.
        deployConfig - Flink conf for the deployment.
        savepoint - Optional savepoint path for applications and session jobs.
        requireHaMetadata - Flag used by application deployments to validate HA metadata
        抛出:
        java.lang.Exception - Error during deployment.
      • cancelJob

        protected void cancelJob​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx,
                                 org.apache.flink.kubernetes.operator.api.spec.UpgradeMode upgradeMode)
                          throws java.lang.Exception
        从类复制的说明: AbstractJobReconciler
        Cancel the job for the given resource using the specified upgrade mode.
        指定者:
        cancelJob 在类中 AbstractJobReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
        参数:
        ctx - Reconciler context.
        upgradeMode - Upgrade mode used during cancel.
        抛出:
        java.lang.Exception - Error during cancellation.
      • cleanupAfterFailedJob

        protected void cleanupAfterFailedJob​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)
        从类复制的说明: AbstractJobReconciler
        Removes a failed job.
        指定者:
        cleanupAfterFailedJob 在类中 AbstractJobReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
        参数:
        ctx - Reconciler context.
      • reconcileOtherChanges

        public boolean reconcileOtherChanges​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)
                                      throws java.lang.Exception
        从类复制的说明: AbstractFlinkResourceReconciler
        Reconcile any other changes required for this resource that are specific to the reconciler implementation.
        覆盖:
        reconcileOtherChanges 在类中 AbstractJobReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
        参数:
        ctx - Reconciliation context.
        返回:
        True if any further reconciliation action was taken.
        抛出:
        java.lang.Exception - Error during reconciliation.
      • cleanupInternal

        protected io.javaoperatorsdk.operator.api.reconciler.DeleteControl cleanupInternal​(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)
        从类复制的说明: AbstractFlinkResourceReconciler
        Shut down and clean up all Flink job/cluster resources.
        指定者:
        cleanupInternal 在类中 AbstractFlinkResourceReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,​org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,​org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
        参数:
        ctx - Current context.
        返回:
        DeleteControl object.