| 限定符和类型 | 方法和说明 |
|---|---|
static SlotInfoWithUtilization |
from(SlotInfo slotInfo,
double taskExecutorUtilization) |
AllocationID |
getAllocationId()
Gets the id under which the slot has been allocated on the TaskManager.
|
int |
getPhysicalSlotNumber()
Gets the number of the slot.
|
ResourceProfile |
getResourceProfile()
Returns the resource profile of the slot.
|
TaskManagerLocation |
getTaskManagerLocation()
Gets the location info of the TaskManager that offers this slot.
|
boolean |
willBeOccupiedIndefinitely()
Returns whether the slot will be occupied indefinitely.
|
public AllocationID getAllocationId()
SlotInfogetAllocationId 在接口中 SlotInfopublic TaskManagerLocation getTaskManagerLocation()
SlotInfogetTaskManagerLocation 在接口中 SlotInfopublic int getPhysicalSlotNumber()
SlotInfogetPhysicalSlotNumber 在接口中 SlotInfopublic ResourceProfile getResourceProfile()
SlotInfogetResourceProfile 在接口中 SlotInfopublic boolean willBeOccupiedIndefinitely()
SlotInfowillBeOccupiedIndefinitely 在接口中 SlotInfopublic static SlotInfoWithUtilization from(SlotInfo slotInfo, double taskExecutorUtilization)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.