类 SessionReconciler
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.reconciler.deployment.AbstractFlinkResourceReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
-
- org.apache.flink.kubernetes.operator.reconciler.deployment.SessionReconciler
-
- 所有已实现的接口:
Reconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment>
public class SessionReconciler extends AbstractFlinkResourceReconciler<org.apache.flink.kubernetes.operator.api.FlinkDeployment,org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec,org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentStatus>
Reconciler responsible for handling the session cluster lifecycle according to the desired and current states.
-
-
字段概要
-
从类继承的字段 org.apache.flink.kubernetes.operator.reconciler.deployment.AbstractFlinkResourceReconciler
clock, eventRecorder, kubernetesClient, MSG_ROLLBACK, MSG_SPEC_CHANGED, MSG_SUBMIT, MSG_SUSPENDED, resourceScaler, statusRecorder
-
-
构造器概要
构造器 构造器 说明 SessionReconciler(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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 io.javaoperatorsdk.operator.api.reconciler.DeleteControlcleanupInternal(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)Shut down and clean up all Flink job/cluster resources.voiddeploy(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)Deploys the target resource spec to Kubernetes.protected booleanreadyToReconcile(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)Check whether the given Flink resource is ready to be reconciled or we are still waiting for any pending operation or condition first.booleanreconcileOtherChanges(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)Reconcile any other changes required for this resource that are specific to the reconciler implementation.protected booleanreconcileSpecChange(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx, org.apache.flink.configuration.Configuration deployConfig)Reconcile spec upgrade on the currently deployed/suspended Flink resource and update the status accordingly.-
从类继承的方法 org.apache.flink.kubernetes.operator.reconciler.deployment.AbstractFlinkResourceReconciler
cleanup, flinkVersionChanged, reconcile, setClock, setOwnerReference, shouldRecoverDeployment
-
-
-
-
构造器详细资料
-
SessionReconciler
public SessionReconciler(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)
-
-
方法详细资料
-
readyToReconcile
protected boolean readyToReconcile(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)
从类复制的说明:AbstractFlinkResourceReconcilerCheck whether the given Flink resource is ready to be reconciled or we are still waiting for any pending operation or condition first.- 指定者:
readyToReconcile在类中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.- 返回:
- True if the resource is ready to be reconciled.
-
reconcileSpecChange
protected boolean reconcileSpecChange(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx, org.apache.flink.configuration.Configuration deployConfig) throws java.lang.Exception
从类复制的说明:AbstractFlinkResourceReconcilerReconcile spec upgrade on the currently deployed/suspended Flink resource and update the status accordingly.- 指定者:
reconcileSpecChange在类中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.deployConfig- Deployment configuration.- 返回:
- True if spec change reconciliation was executed
- 抛出:
java.lang.Exception- Error during spec upgrade.
-
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
从类复制的说明:AbstractFlinkResourceReconcilerDeploys 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.
-
reconcileOtherChanges
public boolean reconcileOtherChanges(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx) throws java.lang.Exception
从类复制的说明:AbstractFlinkResourceReconcilerReconcile any other changes required for this resource that are specific to the reconciler implementation.- 指定者:
reconcileOtherChanges在类中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.- 返回:
- True if any further reconciliation action was taken.
- 抛出:
java.lang.Exception- Error during reconciliation.
-
cleanupInternal
public io.javaoperatorsdk.operator.api.reconciler.DeleteControl cleanupInternal(FlinkResourceContext<org.apache.flink.kubernetes.operator.api.FlinkDeployment> ctx)
从类复制的说明:AbstractFlinkResourceReconcilerShut 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.
-
-