Class SharingPhysicalSlotRequestBulk

java.lang.Object
org.apache.flink.runtime.scheduler.SharingPhysicalSlotRequestBulk
All Implemented Interfaces:
PhysicalSlotRequestBulk

public class SharingPhysicalSlotRequestBulk extends Object implements PhysicalSlotRequestBulk
Implementation of PhysicalSlotRequestBulk for SlotSharingExecutionSlotAllocator.

The bulk tracks the pending and fulfilled requests by the ExecutionSlotSharingGroup for which the physical slot is being allocated. SlotSharingExecutionSlotAllocator calls markFulfilled(ExecutionSlotSharingGroup, AllocationID) to move a pending request to fulfilled.

Additionally the bulk keeps execution lists for each ExecutionSlotSharingGroup they belong to. If the cancel(Throwable) method is called (due to fulfillability check timeout in PhysicalSlotRequestBulkChecker) then the bulk calls back the SlotSharingExecutionSlotAllocator to cancel all logical slots requests for executions of all bulk's ExecutionSlotSharingGroups.