Interface PhysicalSlotRequestBulkChecker
-
- All Known Implementing Classes:
PhysicalSlotRequestBulkCheckerImpl
public interface PhysicalSlotRequestBulkCheckerThis class tracks a fulfillability timeout of a bulk of physical slot requests.The check stops when all pending physical slot requests of
PhysicalSlotRequestBulkare fulfilled by available or newly allocated slots. The bulk is fulfillable if all its physical slot requests can be fulfilled either by available or newly allocated slots or slots which currently used by other job subtasks. The bulk gets canceled if the timeout occurs and the bulk is not fulfillable. The timeout timer is not running while the bulk is fulfillable but not fulfilled yet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidschedulePendingRequestBulkTimeoutCheck(PhysicalSlotRequestBulk bulk, Duration timeout)Starts tracking the fulfillability of aPhysicalSlotRequestBulkwith timeout.voidstart(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)Starts the bulk checker by initializing the main thread executor.
-
-
-
Method Detail
-
start
void start(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Starts the bulk checker by initializing the main thread executor.- Parameters:
mainThreadExecutor- the main thread executor of the job master
-
schedulePendingRequestBulkTimeoutCheck
void schedulePendingRequestBulkTimeoutCheck(PhysicalSlotRequestBulk bulk, Duration timeout)
Starts tracking the fulfillability of aPhysicalSlotRequestBulkwith timeout.- Parameters:
bulk-PhysicalSlotRequestBulkto tracktimeout- timeout after which the bulk should be canceled if it is still not fulfillable.
-
-