Interface ExecutionSlotAllocator
-
- All Known Implementing Classes:
SimpleExecutionSlotAllocator
public interface ExecutionSlotAllocatorComponent responsible for assigning slots to a collection ofExecution.
-
-
Method Summary
All Methods Instance Methods Abstract 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
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
void cancel(ExecutionAttemptID executionAttemptId)
Cancel the ongoing slot request of the givenExecution.- Parameters:
executionAttemptId- identifying theExecutionof which the slot request should be canceled.
-
-