Class DefaultExecutionDeployer.Factory
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.DefaultExecutionDeployer.Factory
-
- All Implemented Interfaces:
ExecutionDeployer.Factory
- Enclosing class:
- DefaultExecutionDeployer
public static class DefaultExecutionDeployer.Factory extends Object implements ExecutionDeployer.Factory
Factory to instantiate theDefaultExecutionDeployer
.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultExecutionDeployer
createInstance(org.slf4j.Logger log, ExecutionSlotAllocator executionSlotAllocator, ExecutionOperations executionOperations, ExecutionVertexVersioner executionVertexVersioner, Duration partitionRegistrationTimeout, BiConsumer<ExecutionVertexID,AllocationID> allocationReservationFunc, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Instantiate anExecutionDeployer
with the given params.
-
-
-
Method Detail
-
createInstance
public DefaultExecutionDeployer createInstance(org.slf4j.Logger log, ExecutionSlotAllocator executionSlotAllocator, ExecutionOperations executionOperations, ExecutionVertexVersioner executionVertexVersioner, Duration partitionRegistrationTimeout, BiConsumer<ExecutionVertexID,AllocationID> allocationReservationFunc, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Description copied from interface:ExecutionDeployer.Factory
Instantiate anExecutionDeployer
with the given params. Note that the version of an execution vertex will be recorded before scheduling executions for it. The version may change if a global failure happens, or if the job is canceled, or if the execution vertex is restarted when all its current execution are FAILED/CANCELED. Once the version is changed, the previously triggered execution deployment will be skipped.- Specified by:
createInstance
in interfaceExecutionDeployer.Factory
- Parameters:
log
- the loggerexecutionSlotAllocator
- the allocator to allocate slotsexecutionOperations
- the operations of executionsexecutionVertexVersioner
- the versioner which records the versions of execution vertices.partitionRegistrationTimeout
- timeout of partition registrationallocationReservationFunc
- function to reserve allocations for local recoverymainThreadExecutor
- the main thread executor- Returns:
- an instantiated
ExecutionDeployer
-
-