Class NoopJobAutoscalerFactory
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.reconciler.deployment.NoopJobAutoscalerFactory
-
- All Implemented Interfaces:
JobAutoScaler
,JobAutoScalerFactory
public class NoopJobAutoscalerFactory extends java.lang.Object implements JobAutoScalerFactory, JobAutoScaler
An autoscaler implementation which does nothing.
-
-
Constructor Summary
Constructors Constructor Description NoopJobAutoscalerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(FlinkResourceContext<?> ctx)
Called when the custom resource is deleted.JobAutoScaler
create(EventRecorder eventRecorder)
void
scale(FlinkResourceContext<?> ctx)
Called as part of the reconciliation loop.
-
-
-
Method Detail
-
create
public JobAutoScaler create(EventRecorder eventRecorder)
- Specified by:
create
in interfaceJobAutoScalerFactory
-
scale
public void scale(FlinkResourceContext<?> ctx)
Description copied from interface:JobAutoScaler
Called as part of the reconciliation loop. Returns true if this call led to scaling.- Specified by:
scale
in interfaceJobAutoScaler
-
cleanup
public void cleanup(FlinkResourceContext<?> ctx)
Description copied from interface:JobAutoScaler
Called when the custom resource is deleted.- Specified by:
cleanup
in interfaceJobAutoScaler
-
-