Class SimpleExecutionSlotAllocator
java.lang.Object
org.apache.flink.runtime.scheduler.SimpleExecutionSlotAllocator
- All Implemented Interfaces:
ExecutionSlotAllocator
A simple implementation of
ExecutionSlotAllocator. No support for slot sharing,
co-location, nor local recovery.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory to instantiate aSimpleExecutionSlotAllocator. -
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
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
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.
-