public class SimpleExecutionSlotAllocator extends Object implements ExecutionSlotAllocator
ExecutionSlotAllocator
. No support for slot sharing,
co-location, state/input locality, nor local recovery.Modifier and Type | Class and Description |
---|---|
static class |
SimpleExecutionSlotAllocator.Factory
Factory to instantiate a
SimpleExecutionSlotAllocator . |
Modifier and Type | Method and Description |
---|---|
List<org.apache.flink.runtime.scheduler.ExecutionSlotAssignment> |
allocateSlotsFor(List<ExecutionAttemptID> executionAttemptIds)
Allocate slots for the given executions.
|
void |
cancel(ExecutionAttemptID executionAttemptId)
Cancel the ongoing slot request of the given
Execution . |
public List<org.apache.flink.runtime.scheduler.ExecutionSlotAssignment> allocateSlotsFor(List<ExecutionAttemptID> executionAttemptIds)
ExecutionSlotAllocator
allocateSlotsFor
in interface ExecutionSlotAllocator
executionAttemptIds
- executions to allocate slots forpublic void cancel(ExecutionAttemptID executionAttemptId)
ExecutionSlotAllocator
Execution
.cancel
in interface ExecutionSlotAllocator
executionAttemptId
- identifying the Execution
of which the slot request should
be canceled.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.