public class PhysicalSlotProviderImpl extends Object implements PhysicalSlotProvider
| 构造器和说明 |
|---|
PhysicalSlotProviderImpl(SlotSelectionStrategy slotSelectionStrategy,
SlotPool slotPool) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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 在接口中 PhysicalSlotProviderslotRequestId - identifying the slot request to cancelcause - of the cancellationCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.