Interface SlotInfo
-
- All Known Subinterfaces:
PhysicalSlot,SlotContext
public interface SlotInfoInterface that provides basic information in the context of a slot.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AllocationIDgetAllocationId()Gets the id under which the slot has been allocated on the TaskManager.intgetPhysicalSlotNumber()Gets the number of the slot.ResourceProfilegetResourceProfile()Returns the resource profile of the slot.TaskManagerLocationgetTaskManagerLocation()Gets the location info of the TaskManager that offers this slot.booleanwillBeOccupiedIndefinitely()Returns whether the slot will be occupied indefinitely.
-
-
-
Method Detail
-
getAllocationId
AllocationID getAllocationId()
Gets the id under which the slot has been allocated on the TaskManager. This id uniquely identifies the physical slot.- Returns:
- The id under which the slot has been allocated on the TaskManager
-
getTaskManagerLocation
TaskManagerLocation getTaskManagerLocation()
Gets the location info of the TaskManager that offers this slot.- Returns:
- The location info of the TaskManager that offers this slot
-
getPhysicalSlotNumber
int getPhysicalSlotNumber()
Gets the number of the slot.- Returns:
- The number of the slot on the TaskManager.
-
getResourceProfile
ResourceProfile getResourceProfile()
Returns the resource profile of the slot.- Returns:
- the resource profile of the slot.
-
willBeOccupiedIndefinitely
boolean willBeOccupiedIndefinitely()
Returns whether the slot will be occupied indefinitely.- Returns:
- true if the slot will be occupied indefinitely, otherwise false.
-
-