Class FlinkSessionJobController
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.controller.FlinkSessionJobController
-
- All Implemented Interfaces:
io.javaoperatorsdk.operator.api.reconciler.Cleaner<FlinkSessionJob>
,io.javaoperatorsdk.operator.api.reconciler.ErrorStatusHandler<FlinkSessionJob>
,io.javaoperatorsdk.operator.api.reconciler.EventSourceInitializer<FlinkSessionJob>
,io.javaoperatorsdk.operator.api.reconciler.Reconciler<FlinkSessionJob>
public class FlinkSessionJobController extends java.lang.Object implements io.javaoperatorsdk.operator.api.reconciler.Reconciler<FlinkSessionJob>, io.javaoperatorsdk.operator.api.reconciler.ErrorStatusHandler<FlinkSessionJob>, io.javaoperatorsdk.operator.api.reconciler.EventSourceInitializer<FlinkSessionJob>, io.javaoperatorsdk.operator.api.reconciler.Cleaner<FlinkSessionJob>
Controller that runs the main reconcile loop forFlinkSessionJob
.
-
-
Constructor Summary
Constructors Constructor Description FlinkSessionJobController(java.util.Set<FlinkResourceValidator> validators, FlinkResourceContextFactory ctxFactory, Reconciler<FlinkSessionJob> reconciler, Observer<FlinkSessionJob> observer, StatusRecorder<FlinkSessionJob,FlinkSessionJobStatus> statusRecorder, EventRecorder eventRecorder, CanaryResourceManager<FlinkSessionJob> canaryResourceManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.javaoperatorsdk.operator.api.reconciler.DeleteControl
cleanup(FlinkSessionJob sessionJob, io.javaoperatorsdk.operator.api.reconciler.Context josdkContext)
java.util.Map<java.lang.String,io.javaoperatorsdk.operator.processing.event.source.EventSource>
prepareEventSources(io.javaoperatorsdk.operator.api.reconciler.EventSourceContext<FlinkSessionJob> context)
io.javaoperatorsdk.operator.api.reconciler.UpdateControl<FlinkSessionJob>
reconcile(FlinkSessionJob flinkSessionJob, io.javaoperatorsdk.operator.api.reconciler.Context josdkContext)
io.javaoperatorsdk.operator.api.reconciler.ErrorStatusUpdateControl<FlinkSessionJob>
updateErrorStatus(FlinkSessionJob sessionJob, io.javaoperatorsdk.operator.api.reconciler.Context<FlinkSessionJob> context, java.lang.Exception e)
-
-
-
Constructor Detail
-
FlinkSessionJobController
public FlinkSessionJobController(java.util.Set<FlinkResourceValidator> validators, FlinkResourceContextFactory ctxFactory, Reconciler<FlinkSessionJob> reconciler, Observer<FlinkSessionJob> observer, StatusRecorder<FlinkSessionJob,FlinkSessionJobStatus> statusRecorder, EventRecorder eventRecorder, CanaryResourceManager<FlinkSessionJob> canaryResourceManager)
-
-
Method Detail
-
reconcile
public io.javaoperatorsdk.operator.api.reconciler.UpdateControl<FlinkSessionJob> reconcile(FlinkSessionJob flinkSessionJob, io.javaoperatorsdk.operator.api.reconciler.Context josdkContext)
- Specified by:
reconcile
in interfaceio.javaoperatorsdk.operator.api.reconciler.Reconciler<FlinkSessionJob>
-
cleanup
public io.javaoperatorsdk.operator.api.reconciler.DeleteControl cleanup(FlinkSessionJob sessionJob, io.javaoperatorsdk.operator.api.reconciler.Context josdkContext)
- Specified by:
cleanup
in interfaceio.javaoperatorsdk.operator.api.reconciler.Cleaner<FlinkSessionJob>
-
updateErrorStatus
public io.javaoperatorsdk.operator.api.reconciler.ErrorStatusUpdateControl<FlinkSessionJob> updateErrorStatus(FlinkSessionJob sessionJob, io.javaoperatorsdk.operator.api.reconciler.Context<FlinkSessionJob> context, java.lang.Exception e)
- Specified by:
updateErrorStatus
in interfaceio.javaoperatorsdk.operator.api.reconciler.ErrorStatusHandler<FlinkSessionJob>
-
prepareEventSources
public java.util.Map<java.lang.String,io.javaoperatorsdk.operator.processing.event.source.EventSource> prepareEventSources(io.javaoperatorsdk.operator.api.reconciler.EventSourceContext<FlinkSessionJob> context)
- Specified by:
prepareEventSources
in interfaceio.javaoperatorsdk.operator.api.reconciler.EventSourceInitializer<FlinkSessionJob>
-
-