public abstract static class SlotSharingManager.TaskSlot extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(AbstractID groupId)
Check whether the task slot contains the given groupId.
|
AbstractID |
getGroupId() |
abstract ResourceProfile |
getReservedResources()
Gets the total reserved resources of the slot and its descendants.
|
SlotRequestId |
getSlotRequestId() |
abstract void |
release(Throwable cause)
Release the task slot.
|
public SlotRequestId getSlotRequestId()
@Nullable public AbstractID getGroupId()
public boolean contains(AbstractID groupId)
groupId
- which to check whether it is containedpublic abstract void release(Throwable cause)
cause
- for the releasepublic abstract ResourceProfile getReservedResources()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.