public interface FreeSlotInfoTracker
SlotSelectionStrategy
.Modifier and Type | Method and Description |
---|---|
FreeSlotInfoTracker |
createNewFreeSlotInfoTrackerWithoutBlockedSlots(Set<AllocationID> blockedSlots)
Create a new free slot tracker without blocked slots.
|
Set<AllocationID> |
getAvailableSlots()
Get allocation id of all available slots.
|
Collection<SlotInfo> |
getFreeSlotsInformation()
Returns a list of
SlotInfo objects about all slots that are currently available in
the slot pool. |
Collection<AllocatedSlotPool.FreeSlotInfo> |
getFreeSlotsWithIdleSinceInformation()
Returns a list of
AllocatedSlotPool.FreeSlotInfo objects about all slots with slot
idle since that are currently available in the slot pool. |
SlotInfo |
getSlotInfo(AllocationID allocationId)
Get slot info by allocation id, this slot must exist.
|
double |
getTaskExecutorUtilization(SlotInfo slotInfo)
Get task executor utilization of this slot.
|
void |
reserveSlot(AllocationID allocationId)
Reserve free slot when it is used.
|
Set<AllocationID> getAvailableSlots()
SlotInfo getSlotInfo(AllocationID allocationId)
allocationId
- to get SlotInfoCollection<AllocatedSlotPool.FreeSlotInfo> getFreeSlotsWithIdleSinceInformation()
AllocatedSlotPool.FreeSlotInfo
objects about all slots with slot
idle since that are currently available in the slot pool.AllocatedSlotPool.FreeSlotInfo
objects about all slots with slot
idle since that are currently available in the slot pool.Collection<SlotInfo> getFreeSlotsInformation()
SlotInfo
objects about all slots that are currently available in
the slot pool.SlotInfo
objects about all slots that are currently available in
the slot pool.double getTaskExecutorUtilization(SlotInfo slotInfo)
slotInfo
- to get task executor utilizationvoid reserveSlot(AllocationID allocationId)
allocationId
- to reserveFreeSlotInfoTracker createNewFreeSlotInfoTrackerWithoutBlockedSlots(Set<AllocationID> blockedSlots)
blockedSlots
- slots that should not be usedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.