public interface SchedulerAssignment
Modifier and Type | Method and Description |
---|---|
Set<ExecutorDetails> |
getExecutors()
Get the set of all executors.
|
Map<ExecutorDetails,WorkerSlot> |
getExecutorToSlot()
Get the map of executor to WorkerSlot.
|
Map<String,Double> |
getNodeIdToTotalSharedOffHeapNodeMemory()
Get the total shared off heap node memory mapping.
|
Map<WorkerSlot,WorkerResources> |
getScheduledResources()
Get the slot to resource mapping.
|
Set<WorkerSlot> |
getSlots()
Get the set of all slots that are a part of this.
|
Map<WorkerSlot,Collection<ExecutorDetails>> |
getSlotToExecutors()
Get the mapping of slot to executors on that slot.
|
String |
getTopologyId()
Return the ID of the topology.
|
boolean |
isExecutorAssigned(ExecutorDetails executor)
Is the executor assigned or not.
|
boolean |
isSlotOccupied(WorkerSlot slot)
Is this slot part of this assignment or not.
|
boolean isSlotOccupied(WorkerSlot slot)
slot
- the slot to check.boolean isExecutorAssigned(ExecutorDetails executor)
executor
- the executor to check it if is assigned.String getTopologyId()
Map<ExecutorDetails,WorkerSlot> getExecutorToSlot()
Set<ExecutorDetails> getExecutors()
Set<WorkerSlot> getSlots()
Map<WorkerSlot,Collection<ExecutorDetails>> getSlotToExecutors()
Map<WorkerSlot,WorkerResources> getScheduledResources()
Copyright © 2023 The Apache Software Foundation. All rights reserved.