Interface ExecutionSlotAllocator
- All Known Implementing Classes:
SimpleExecutionSlotAllocator
public interface ExecutionSlotAllocator
Component responsible for assigning slots to a collection of
Execution.-
Method Summary
Modifier and TypeMethodDescriptionMap<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 Details
-
allocateSlotsFor
Map<ExecutionAttemptID,org.apache.flink.runtime.scheduler.ExecutionSlotAssignment> allocateSlotsFor(List<ExecutionAttemptID> executionAttemptIds) Allocate slots for the given executions.- Parameters:
executionAttemptIds- executions to allocate slots for- Returns:
- Map of slot assignments to the executions
-
cancel
Cancel the ongoing slot request of the givenExecution.- Parameters:
executionAttemptId- identifying theExecutionof which the slot request should be canceled.
-