Interface ExecutionSlotAllocator

All Known Implementing Classes:
SimpleExecutionSlotAllocator

public interface ExecutionSlotAllocator
Component responsible for assigning slots to a collection of Execution.
  • 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

      void cancel(ExecutionAttemptID executionAttemptId)
      Cancel the ongoing slot request of the given Execution.
      Parameters:
      executionAttemptId - identifying the Execution of which the slot request should be canceled.