Class PhysicalSlotRequestBulkCheckerImpl
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.slotpool.PhysicalSlotRequestBulkCheckerImpl
-
- All Implemented Interfaces:
PhysicalSlotRequestBulkChecker
public class PhysicalSlotRequestBulkCheckerImpl extends Object implements PhysicalSlotRequestBulkChecker
Default implementation ofPhysicalSlotRequestBulkChecker.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhysicalSlotRequestBulkCheckerImplcreateFromSlotPool(SlotPool slotPool, org.apache.flink.util.clock.Clock clock)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
public void start(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Description copied from interface:PhysicalSlotRequestBulkCheckerStarts the bulk checker by initializing the main thread executor.- Specified by:
startin interfacePhysicalSlotRequestBulkChecker- Parameters:
mainThreadExecutor- the main thread executor of the job master
-
schedulePendingRequestBulkTimeoutCheck
public void schedulePendingRequestBulkTimeoutCheck(PhysicalSlotRequestBulk bulk, Duration timeout)
Description copied from interface:PhysicalSlotRequestBulkCheckerStarts tracking the fulfillability of aPhysicalSlotRequestBulkwith timeout.- Specified by:
schedulePendingRequestBulkTimeoutCheckin interfacePhysicalSlotRequestBulkChecker- Parameters:
bulk-PhysicalSlotRequestBulkto tracktimeout- timeout after which the bulk should be canceled if it is still not fulfillable.
-
createFromSlotPool
public static PhysicalSlotRequestBulkCheckerImpl createFromSlotPool(SlotPool slotPool, org.apache.flink.util.clock.Clock clock)
-
-