public class PhysicalSlotProviderImpl extends Object implements PhysicalSlotProvider
| Constructor and Description |
|---|
PhysicalSlotProviderImpl(SlotSelectionStrategy slotSelectionStrategy,
SlotPool slotPool) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<PhysicalSlotRequest.Result> |
allocatePhysicalSlot(PhysicalSlotRequest physicalSlotRequest)
Submit a request to allocate a physical slot.
|
void |
cancelSlotRequest(SlotRequestId slotRequestId,
Throwable cause)
Cancels the slot request with the given
SlotRequestId. |
public PhysicalSlotProviderImpl(SlotSelectionStrategy slotSelectionStrategy, SlotPool slotPool)
public CompletableFuture<PhysicalSlotRequest.Result> allocatePhysicalSlot(PhysicalSlotRequest physicalSlotRequest)
PhysicalSlotProviderThe physical slot can be either allocated from the slots, which are already available for the job, or a new one can be requeted from the resource manager.
allocatePhysicalSlot in interface PhysicalSlotProviderphysicalSlotRequest - slot requirementspublic void cancelSlotRequest(SlotRequestId slotRequestId, Throwable cause)
PhysicalSlotProviderSlotRequestId.
If the request is already fulfilled with a physical slot, the slot will be released.
cancelSlotRequest in interface PhysicalSlotProviderslotRequestId - identifying the slot request to cancelcause - of the cancellationCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.