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 classSimpleExecutionSlotAllocator.FactoryFactory 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.voidcancel(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:ExecutionSlotAllocatorAllocate slots for the given executions.- Specified by:
allocateSlotsForin 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:ExecutionSlotAllocatorCancel the ongoing slot request of the givenExecution.- Specified by:
cancelin interfaceExecutionSlotAllocator- Parameters:
executionAttemptId- identifying theExecutionof which the slot request should be canceled.
-
-