Class AdaptiveExecutionHandlerFactory
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptivebatch.AdaptiveExecutionHandlerFactory
-
public class AdaptiveExecutionHandlerFactory extends Object
A factory class for creating instances ofAdaptiveExecutionHandler
. This factory provides a method to create an appropriate handler based on the type of the execution plan.
-
-
Constructor Summary
Constructors Constructor Description AdaptiveExecutionHandlerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdaptiveExecutionHandler
create(ExecutionPlan executionPlan, boolean enableBatchJobRecovery, ClassLoader userClassLoader, Executor serializationExecutor)
Creates an instance ofAdaptiveExecutionHandler
based on the provided execution plan.
-
-
-
Method Detail
-
create
public static AdaptiveExecutionHandler create(ExecutionPlan executionPlan, boolean enableBatchJobRecovery, ClassLoader userClassLoader, Executor serializationExecutor) throws org.apache.flink.util.DynamicCodeLoadingException
Creates an instance ofAdaptiveExecutionHandler
based on the provided execution plan.TODO: Currently, adaptive execution cannot work with batch job progress recovery, so we always use
NonAdaptiveExecutionHandler
if batch job recovery is enabled. This limitation will be removed in the future when we adapt adaptive batch execution to batch job recovery.- Parameters:
executionPlan
- The execution plan, which can be either aJobGraph
or aStreamGraph
.enableBatchJobRecovery
- Whether to enable batch job recovery.userClassLoader
- The class loader for the user code.serializationExecutor
- The executor used for serialization tasks.- Returns:
- An instance of
AdaptiveExecutionHandler
. - Throws:
IllegalArgumentException
- if the execution plan is neither aJobGraph
nor aStreamGraph
.org.apache.flink.util.DynamicCodeLoadingException
-
-