| Package | Description |
|---|---|
| org.apache.flink.runtime.clusterframework.types | |
| org.apache.flink.runtime.executiongraph | |
| org.apache.flink.runtime.jobmaster.slotpool |
| Modifier and Type | Method and Description |
|---|---|
static SlotProfile |
SlotProfile.noLocality(ResourceProfile resourceProfile)
Returns a slot profile for the given resource profile, without any locality requirements.
|
static SlotProfile |
SlotProfile.noRequirements()
Returns a slot profile that has no requirements.
|
static SlotProfile |
SlotProfile.preferredLocality(ResourceProfile resourceProfile,
Collection<TaskManagerLocation> preferredLocations)
Returns a slot profile for the given resource profile and the preferred locations.
|
static SlotProfile |
SlotProfile.priorAllocation(ResourceProfile taskResourceProfile,
ResourceProfile physicalSlotResourceProfile,
Collection<TaskManagerLocation> preferredLocations,
Collection<AllocationID> priorAllocations,
Set<AllocationID> previousExecutionGraphAllocations)
Returns a slot profile for the given resource profile, prior allocations and
all prior allocation ids from the whole execution graph.
|
| Modifier and Type | Method and Description |
|---|---|
abstract CompletableFuture<LogicalSlot> |
SlotProviderStrategy.allocateSlot(SlotRequestId slotRequestId,
ScheduledUnit scheduledUnit,
SlotProfile slotProfile)
Allocating slot with specific requirement.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<LogicalSlot> |
SchedulerImpl.allocateBatchSlot(SlotRequestId slotRequestId,
ScheduledUnit scheduledUnit,
SlotProfile slotProfile) |
default CompletableFuture<LogicalSlot> |
SlotProvider.allocateBatchSlot(SlotRequestId slotRequestId,
ScheduledUnit scheduledUnit,
SlotProfile slotProfile)
Allocating batch slot with specific requirement.
|
default CompletableFuture<LogicalSlot> |
SlotProvider.allocateSlot(ScheduledUnit scheduledUnit,
SlotProfile slotProfile,
org.apache.flink.api.common.time.Time allocationTimeout)
Allocating slot with specific requirement.
|
CompletableFuture<LogicalSlot> |
SchedulerImpl.allocateSlot(SlotRequestId slotRequestId,
ScheduledUnit scheduledUnit,
SlotProfile slotProfile,
org.apache.flink.api.common.time.Time allocationTimeout) |
CompletableFuture<LogicalSlot> |
SlotProvider.allocateSlot(SlotRequestId slotRequestId,
ScheduledUnit scheduledUnit,
SlotProfile slotProfile,
org.apache.flink.api.common.time.Time allocationTimeout)
Allocating slot with specific requirement.
|
Optional<SlotSelectionStrategy.SlotInfoAndLocality> |
SlotSelectionStrategy.selectBestSlotForProfile(Collection<SlotSelectionStrategy.SlotInfoAndResources> availableSlots,
SlotProfile slotProfile)
Selects the best
SlotInfo w.r.t. |
Optional<SlotSelectionStrategy.SlotInfoAndLocality> |
PreviousAllocationSlotSelectionStrategy.selectBestSlotForProfile(Collection<SlotSelectionStrategy.SlotInfoAndResources> availableSlots,
SlotProfile slotProfile) |
Optional<SlotSelectionStrategy.SlotInfoAndLocality> |
LocationPreferenceSlotSelectionStrategy.selectBestSlotForProfile(Collection<SlotSelectionStrategy.SlotInfoAndResources> availableSlots,
SlotProfile slotProfile) |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.