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 of
PhysicalSlotRequestBulkChecker.-
Method Summary
Modifier and TypeMethodDescriptioncreateFromSlotPool(SlotPool slotPool, org.apache.flink.util.clock.Clock clock) voidStarts 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 Details
-
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
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)
-