Class StandaloneAutoscalerExecutor<KEY,Context extends JobAutoScalerContext<KEY>>
- java.lang.Object
-
- org.apache.flink.autoscaler.standalone.StandaloneAutoscalerExecutor<KEY,Context>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class StandaloneAutoscalerExecutor<KEY,Context extends JobAutoScalerContext<KEY>> extends java.lang.Object implements java.io.Closeable
The executor of the standalone autoscaler.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
AUTOSCALER_ERROR
-
Constructor Summary
Constructors Constructor Description StandaloneAutoscalerExecutor(java.time.Duration scalingInterval, JobListFetcher<KEY,Context> jobListFetcher, AutoScalerEventHandler<KEY,Context> eventHandler, JobAutoScaler<KEY,Context> autoScaler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
scaling()
void
start()
-
-
-
Field Detail
-
AUTOSCALER_ERROR
@VisibleForTesting protected static final java.lang.String AUTOSCALER_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandaloneAutoscalerExecutor
public StandaloneAutoscalerExecutor(@Nonnull java.time.Duration scalingInterval, @Nonnull JobListFetcher<KEY,Context> jobListFetcher, @Nonnull AutoScalerEventHandler<KEY,Context> eventHandler, @Nonnull JobAutoScaler<KEY,Context> autoScaler)
-
-