Class SimpleExecutionSlotAllocator
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.SimpleExecutionSlotAllocator
-
- All Implemented Interfaces:
ExecutionSlotAllocator
public class SimpleExecutionSlotAllocator extends Object implements ExecutionSlotAllocator
A simple implementation ofExecutionSlotAllocator
. No support for slot sharing, co-location, nor local recovery.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleExecutionSlotAllocator.Factory
Factory to instantiate aSimpleExecutionSlotAllocator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<ExecutionAttemptID,org.apache.flink.runtime.scheduler.ExecutionSlotAssignment>
allocateSlotsFor(List<ExecutionAttemptID> executionAttemptIds)
Allocate slots for the given executions.void
cancel(ExecutionAttemptID executionAttemptId)
Cancel the ongoing slot request of the givenExecution
.
-
-
-
Method Detail
-
allocateSlotsFor
public Map<ExecutionAttemptID,org.apache.flink.runtime.scheduler.ExecutionSlotAssignment> allocateSlotsFor(List<ExecutionAttemptID> executionAttemptIds)
Description copied from interface:ExecutionSlotAllocator
Allocate slots for the given executions.- Specified by:
allocateSlotsFor
in interfaceExecutionSlotAllocator
- Parameters:
executionAttemptIds
- executions to allocate slots for- Returns:
- Map of slot assignments to the executions
-
cancel
public void cancel(ExecutionAttemptID executionAttemptId)
Description copied from interface:ExecutionSlotAllocator
Cancel the ongoing slot request of the givenExecution
.- Specified by:
cancel
in interfaceExecutionSlotAllocator
- Parameters:
executionAttemptId
- identifying theExecution
of which the slot request should be canceled.
-
-