public class SlotProfile extends Object
SlotContext against the slot profile and, potentially, further requirements.| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
getPhysicalSlotResourceProfile()
Returns the desired resource profile for the physical slot to host this task slot.
|
Collection<AllocationID> |
getPreferredAllocations()
Returns the desired allocation ids for the slot.
|
Collection<TaskManagerLocation> |
getPreferredLocations()
Returns the preferred locations for the slot.
|
Set<AllocationID> |
getReservedAllocations()
Returns a set of all reserved allocation ids from the execution graph.
|
ResourceProfile |
getTaskResourceProfile()
Returns the desired resource profile for the task slot.
|
static SlotProfile |
priorAllocation(ResourceProfile taskResourceProfile,
ResourceProfile physicalSlotResourceProfile,
Collection<TaskManagerLocation> preferredLocations,
Collection<AllocationID> priorAllocations,
Set<AllocationID> reservedAllocations)
Returns a slot profile for the given resource profile, prior allocations and all prior
allocation ids from the whole execution graph.
|
String |
toString() |
public ResourceProfile getTaskResourceProfile()
public ResourceProfile getPhysicalSlotResourceProfile()
public Collection<TaskManagerLocation> getPreferredLocations()
public Collection<AllocationID> getPreferredAllocations()
public Set<AllocationID> getReservedAllocations()
PreviousAllocationSlotSelectionStrategy to support local recovery. In this case, a vertex
cannot take an reserved allocation unless it exactly prefers that allocation.
This is optional and can be empty if unused.
public static SlotProfile priorAllocation(ResourceProfile taskResourceProfile, ResourceProfile physicalSlotResourceProfile, Collection<TaskManagerLocation> preferredLocations, Collection<AllocationID> priorAllocations, Set<AllocationID> reservedAllocations)
taskResourceProfile - specifying the required resources for the task slotphysicalSlotResourceProfile - specifying the required resources for the physical slot to
host this task slotpreferredLocations - specifying the preferred locationspriorAllocations - specifying the prior allocationsreservedAllocations - specifying all reserved allocationsCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.