public interface PhysicalSlotProvider
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
void |
disableBatchSlotRequestTimeoutCheck()
Disables batch slot request timeout check.
|
CompletableFuture<PhysicalSlotRequest.Result> allocatePhysicalSlot(PhysicalSlotRequest physicalSlotRequest)
The 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.
physicalSlotRequest - slot requirementsvoid cancelSlotRequest(SlotRequestId slotRequestId, Throwable cause)
SlotRequestId.
If the request is already fulfilled with a physical slot, the slot will be released.
slotRequestId - identifying the slot request to cancelcause - of the cancellationvoid disableBatchSlotRequestTimeoutCheck()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.