public final class SlotSharingManager.MultiTaskSlot extends SlotSharingManager.TaskSlot implements PhysicalSlot.Payload
SlotSharingManager.TaskSlot
implementation which can have multiple other task slots assigned as
children.Modifier and Type | Method and Description |
---|---|
boolean |
contains(AbstractID groupId)
Checks whether this slot or any of its children contains the given groupId.
|
ResourceProfile |
getReservedResources()
Gets the total reserved resources of the slot and its descendants.
|
void |
release(Throwable cause)
Release the task slot.
|
String |
toString() |
boolean |
willOccupySlotIndefinitely()
Returns whether the payload will occupy a physical slot indefinitely.
|
getGroupId, getSlotRequestId
public boolean contains(AbstractID groupId)
contains
in class SlotSharingManager.TaskSlot
groupId
- which to check whether it is containedpublic void release(Throwable cause)
SlotSharingManager.TaskSlot
release
in interface PhysicalSlot.Payload
release
in class SlotSharingManager.TaskSlot
cause
- for the releasepublic boolean willOccupySlotIndefinitely()
PhysicalSlot.Payload
willOccupySlotIndefinitely
in interface PhysicalSlot.Payload
public ResourceProfile getReservedResources()
SlotSharingManager.TaskSlot
getReservedResources
in class SlotSharingManager.TaskSlot
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.