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(AbstractFlinkResource<?,?> cr)
Called when the custom resource is deleted.JobAutoScaler
create(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, EventRecorder eventRecorder)
boolean
scale(FlinkResourceContext ctx)
Called as part of the reconciliation loop.
-
-
-
Method Detail
-
create
public JobAutoScaler create(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, EventRecorder eventRecorder)
- Specified by:
create
in interfaceJobAutoScalerFactory
-
scale
public boolean 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(AbstractFlinkResource<?,?> cr)
Description copied from interface:JobAutoScaler
Called when the custom resource is deleted.- Specified by:
cleanup
in interfaceJobAutoScaler
-
-