Uses of Class
org.apache.flink.kubernetes.operator.crd.AbstractFlinkResource
-
-
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.crd
Subclasses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.crd Modifier and Type Class Description classFlinkDeploymentCustom resource definition that represents both Application and Session deployments.classFlinkSessionJobCustom resource definition that represents a flink session job. -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.crd.status
Methods in org.apache.flink.kubernetes.operator.crd.status with parameters of type AbstractFlinkResource Modifier and Type Method Description voidReconciliationStatus. serializeAndSetLastReconciledSpec(SPEC spec, AbstractFlinkResource<SPEC,?> resource) -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.listener
Classes in org.apache.flink.kubernetes.operator.listener with type parameters of type AbstractFlinkResource Modifier and Type Interface Description static interfaceFlinkResourceListener.ResourceContext<R extends AbstractFlinkResource<?,?>>Base for Resource Event and StatusUpdate contexts.static interfaceFlinkResourceListener.ResourceEventContext<R extends AbstractFlinkResource<?,?>>Context for Resource Event listener methods.static interfaceFlinkResourceListener.StatusUpdateContext<R extends AbstractFlinkResource<?,S>,S extends CommonStatus<?>>Context for Status listener methods. -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.metrics
Classes in org.apache.flink.kubernetes.operator.metrics with type parameters of type AbstractFlinkResource Modifier and Type Class Description classMetricManager<CR extends AbstractFlinkResource<?,?>>Metric manager for Operator managed custom resources. -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.metrics.lifecycle
Classes in org.apache.flink.kubernetes.operator.metrics.lifecycle with type parameters of type AbstractFlinkResource Modifier and Type Class Description classLifecycleMetrics<CR extends AbstractFlinkResource<?,?>>Utility for tracking resource lifecycle metrics globally and per namespace. -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.observer
Methods in org.apache.flink.kubernetes.operator.observer with parameters of type AbstractFlinkResource Modifier and Type Method Description booleanJobStatusObserver. observe(AbstractFlinkResource<?,?> resource, org.apache.flink.configuration.Configuration deployedConfig, CTX ctx)Observe the status of the flink job.voidSavepointObserver. observeSavepointStatus(AbstractFlinkResource<?,STATUS> resource, org.apache.flink.configuration.Configuration deployedConfig) -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.reconciler
Methods in org.apache.flink.kubernetes.operator.reconciler with type parameters of type AbstractFlinkResource Modifier and Type Method Description static <STATUS extends CommonStatus<?>,R extends AbstractFlinkResource<?,STATUS>>
io.javaoperatorsdk.operator.api.reconciler.ErrorStatusUpdateControl<R>ReconciliationUtils. toErrorStatusUpdateControl(R resource, java.util.Optional<io.javaoperatorsdk.operator.api.reconciler.RetryInfo> retryInfo, java.lang.Exception e, StatusRecorder<STATUS> statusRecorder)Update the resource error status and metrics when the operator encountered an exception during reconciliation.Methods in org.apache.flink.kubernetes.operator.reconciler with parameters of type AbstractFlinkResource Modifier and Type Method Description static <SPEC extends AbstractFlinkSpec>
booleanReconciliationUtils. applyValidationErrorAndResetSpec(AbstractFlinkResource<SPEC,?> deployment, java.lang.String validationError)In case of validation errors we need to (temporarily) reset the old spec so that we can reconcile other outstanding changes, instead of simply blocking.static <SPEC extends AbstractFlinkSpec>
SPECReconciliationUtils. getDeployedSpec(AbstractFlinkResource<SPEC,?> deployment)static java.lang.LongReconciliationUtils. getUpgradeTargetGeneration(AbstractFlinkResource<?,?> resource)Get spec generation for the current in progress upgrade.static booleanReconciliationUtils. isUpgradeModeChangedToLastStateAndHADisabledPreviously(AbstractFlinkResource<?,?> flinkApp, org.apache.flink.configuration.Configuration observeConfig)static voidReconciliationUtils. updateForReconciliationError(AbstractFlinkResource<?,?> target, java.lang.String error)static <SPEC extends AbstractFlinkSpec>
voidReconciliationUtils. updateLastReconciledSavepointTriggerNonce(SavepointInfo savepointInfo, AbstractFlinkResource<SPEC,?> target)static <SPEC extends AbstractFlinkSpec>
voidReconciliationUtils. updateStatusBeforeDeploymentAttempt(AbstractFlinkResource<SPEC,?> target, org.apache.flink.configuration.Configuration conf)Update status before deployment attempt of a new resource spec.static <SPEC extends AbstractFlinkSpec>
voidReconciliationUtils. updateStatusForAlreadyUpgraded(AbstractFlinkResource<SPEC,?> resource)Updates status in cases where a previously successful deployment wasn't recorded for any reason.static <SPEC extends AbstractFlinkSpec>
voidReconciliationUtils. updateStatusForDeployedSpec(AbstractFlinkResource<SPEC,?> target, org.apache.flink.configuration.Configuration conf)Update status after successful deployment of a new resource spec.static java.lang.StringReconciliationUtils. writeSpecWithMeta(AbstractFlinkSpec spec, AbstractFlinkResource<?,?> relatedResource)Serializes the spec and custom meta information into a JSON string. -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.reconciler.deployment
Classes in org.apache.flink.kubernetes.operator.reconciler.deployment with type parameters of type AbstractFlinkResource Modifier and Type Class Description classAbstractFlinkResourceReconciler<CR extends AbstractFlinkResource<SPEC,STATUS>,SPEC extends AbstractFlinkSpec,STATUS extends CommonStatus<SPEC>>Base class for all Flink resource reconcilers.classAbstractJobReconciler<CR extends AbstractFlinkResource<SPEC,STATUS>,SPEC extends AbstractFlinkSpec,STATUS extends CommonStatus<SPEC>>Reconciler responsible for handling the job lifecycle according to the desired and current states. -
Uses of AbstractFlinkResource in org.apache.flink.kubernetes.operator.utils
Methods in org.apache.flink.kubernetes.operator.utils with type parameters of type AbstractFlinkResource Modifier and Type Method Description <T extends AbstractFlinkResource<?,STATUS>>
voidStatusRecorder. patchAndCacheStatus(T resource)Update the status of the provided kubernetes resource on the k8s cluster.<T extends AbstractFlinkResource<?,STATUS>>
voidStatusRecorder. removeCachedStatus(T resource)Remove cached status for Flink resource.<T extends AbstractFlinkResource<?,STATUS>>
voidStatusRecorder. updateStatusFromCache(T resource)Update the custom resource status based on the in-memory cached to ensure that any status updates that we made previously are always visible in the reconciliation loop.Methods in org.apache.flink.kubernetes.operator.utils with parameters of type AbstractFlinkResource Modifier and Type Method Description static voidSavepointUtils. resetTriggerIfJobNotRunning(AbstractFlinkResource<?,?> resource, EventRecorder eventRecorder)protected static java.util.Optional<SavepointTriggerType>SavepointUtils. shouldTriggerSavepoint(AbstractFlinkResource<?,?> resource, org.apache.flink.configuration.Configuration conf)Checks whether savepoint should be triggered based on the current status and spec and if yes, returns the correctSavepointTriggerType.booleanEventRecorder. triggerEvent(AbstractFlinkResource<?,?> resource, EventRecorder.Type type, java.lang.String reason, java.lang.String message, EventRecorder.Component component)booleanEventRecorder. triggerEvent(AbstractFlinkResource<?,?> resource, EventRecorder.Type type, EventRecorder.Reason reason, EventRecorder.Component component, java.lang.String message)static booleanSavepointUtils. triggerSavepointIfNeeded(FlinkService flinkService, AbstractFlinkResource<?,?> resource, org.apache.flink.configuration.Configuration conf)Triggers any pending manual or periodic savepoints and updates the status accordingly.Method parameters in org.apache.flink.kubernetes.operator.utils with type arguments of type AbstractFlinkResource Modifier and Type Method Description static <S extends CommonStatus<?>>
StatusRecorder<S>StatusRecorder. create(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, MetricManager<AbstractFlinkResource<?,S>> metricManager, java.util.Collection<FlinkResourceListener> listeners)Constructor parameters in org.apache.flink.kubernetes.operator.utils with type arguments of type AbstractFlinkResource Constructor Description EventRecorder(io.fabric8.kubernetes.client.KubernetesClient client, java.util.function.BiConsumer<AbstractFlinkResource<?,?>,io.fabric8.kubernetes.api.model.Event> eventListener)StatusRecorder(io.fabric8.kubernetes.client.KubernetesClient client, MetricManager<AbstractFlinkResource<?,STATUS>> metricManager, java.util.function.BiConsumer<AbstractFlinkResource<?,STATUS>,STATUS> statusUpdateListener)StatusRecorder(io.fabric8.kubernetes.client.KubernetesClient client, MetricManager<AbstractFlinkResource<?,STATUS>> metricManager, java.util.function.BiConsumer<AbstractFlinkResource<?,STATUS>,STATUS> statusUpdateListener)
-