Modifier and Type | Method and Description |
---|---|
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()
SlotInfo
getAllocationId
in interface SlotInfo
public TaskManagerLocation getTaskManagerLocation()
SlotInfo
getTaskManagerLocation
in interface SlotInfo
public int getPhysicalSlotNumber()
SlotInfo
getPhysicalSlotNumber
in interface SlotInfo
public ResourceProfile getResourceProfile()
SlotInfo
getResourceProfile
in interface SlotInfo
public boolean willBeOccupiedIndefinitely()
SlotInfo
willBeOccupiedIndefinitely
in interface SlotInfo
public static SlotInfoWithUtilization from(SlotInfo slotInfo, double taskExecutorUtilization)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.