public interface LogicalSlot
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
LogicalSlot.Payload
Payload for a logical slot.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static LogicalSlot.Payload |
TERMINATED_PAYLOAD |
| 限定符和类型 | 方法和说明 |
|---|---|
AllocationID |
getAllocationId()
Gets the allocation id of this slot.
|
Locality |
getLocality()
Gets the locality of this slot.
|
LogicalSlot.Payload |
getPayload()
Returns the set payload or null if none.
|
SlotRequestId |
getSlotRequestId()
Gets the slot request id uniquely identifying the request with which this slot has been
allocated.
|
TaskManagerGateway |
getTaskManagerGateway()
Return the TaskManager gateway to talk to the TaskManager.
|
TaskManagerLocation |
getTaskManagerLocation()
Return the TaskManager location of this slot.
|
boolean |
isAlive()
True if the slot is alive and has not been released.
|
default CompletableFuture<?> |
releaseSlot()
已过时。
Added because extended the actual releaseSlot method with cause parameter.
|
CompletableFuture<?> |
releaseSlot(Throwable cause)
Releases this slot.
|
boolean |
tryAssignPayload(LogicalSlot.Payload payload)
Tries to assign a payload to this slot.
|
static final LogicalSlot.Payload TERMINATED_PAYLOAD
TaskManagerLocation getTaskManagerLocation()
TaskManagerGateway getTaskManagerGateway()
Locality getLocality()
boolean isAlive()
boolean tryAssignPayload(LogicalSlot.Payload payload)
payload - to be assigned to this slot.@Nullable LogicalSlot.Payload getPayload()
default CompletableFuture<?> releaseSlot()
CompletableFuture<?> releaseSlot(@Nullable Throwable cause)
cause - why the slot was released or null if noneAllocationID getAllocationId()
SlotRequestId getSlotRequestId()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.