| 程序包 | 说明 |
|---|---|
| org.apache.flink.runtime.jobmaster | |
| org.apache.flink.runtime.jobmaster.slotpool |
| 限定符和类型 | 方法和说明 |
|---|---|
SlotRequestId |
LogicalSlot.getSlotRequestId()
Gets the slot request id uniquely identifying the request with which this slot has been
allocated.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SlotRequestId |
PhysicalSlotRequest.getSlotRequestId() |
SlotRequestId |
PhysicalSlotRequest.Result.getSlotRequestId() |
SlotRequestId |
SingleLogicalSlot.getSlotRequestId() |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<PhysicalSlot> |
SlotPool.allocateAvailableSlot(SlotRequestId slotRequestId,
AllocationID allocationID,
ResourceProfile requirementProfile)
Allocates the available slot with the given allocation id under the given request id for the
given requirement profile.
|
Optional<PhysicalSlot> |
DeclarativeSlotPoolBridge.allocateAvailableSlot(SlotRequestId slotRequestId,
AllocationID allocationID,
ResourceProfile requirementProfile) |
static SingleLogicalSlot |
SingleLogicalSlot.allocateFromPhysicalSlot(SlotRequestId slotRequestId,
PhysicalSlot physicalSlot,
Locality locality,
SlotOwner slotOwner,
boolean slotWillBeOccupiedIndefinitely) |
void |
PhysicalSlotProvider.cancelSlotRequest(SlotRequestId slotRequestId,
Throwable cause)
Cancels the slot request with the given
SlotRequestId. |
void |
PhysicalSlotProviderImpl.cancelSlotRequest(SlotRequestId slotRequestId,
Throwable cause) |
void |
AllocatedSlotActions.releaseSlot(SlotRequestId slotRequestId,
Throwable cause)
Releases the slot with the given
SlotRequestId. |
void |
DeclarativeSlotPoolBridge.releaseSlot(SlotRequestId slotRequestId,
Throwable cause) |
default CompletableFuture<PhysicalSlot> |
SlotPool.requestNewAllocatedBatchSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile)
Requests the allocation of a new batch slot from the resource manager.
|
CompletableFuture<PhysicalSlot> |
SlotPool.requestNewAllocatedBatchSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
Collection<AllocationID> preferredAllocations) |
CompletableFuture<PhysicalSlot> |
DeclarativeSlotPoolBridge.requestNewAllocatedBatchSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
Collection<AllocationID> preferredAllocations) |
CompletableFuture<PhysicalSlot> |
SlotPool.requestNewAllocatedSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
Collection<AllocationID> preferredAllocations,
org.apache.flink.api.common.time.Time timeout)
Request the allocation of a new slot from the resource manager.
|
CompletableFuture<PhysicalSlot> |
DeclarativeSlotPoolBridge.requestNewAllocatedSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
Collection<AllocationID> preferredAllocations,
org.apache.flink.api.common.time.Time timeout) |
default CompletableFuture<PhysicalSlot> |
SlotPool.requestNewAllocatedSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
org.apache.flink.api.common.time.Time timeout)
Request the allocation of a new slot from the resource manager.
|
| 构造器和说明 |
|---|
PhysicalSlotRequest(SlotRequestId slotRequestId,
SlotProfile slotProfile,
boolean slotWillBeOccupiedIndefinitely) |
Result(SlotRequestId slotRequestId,
PhysicalSlot physicalSlot) |
SingleLogicalSlot(SlotRequestId slotRequestId,
SlotContext slotContext,
Locality locality,
SlotOwner slotOwner) |
SingleLogicalSlot(SlotRequestId slotRequestId,
SlotContext slotContext,
Locality locality,
SlotOwner slotOwner,
boolean willBeOccupiedIndefinitely) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.