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> | getNodeIdToTotalSharedOffHeapMemory()Get the total shared off heap 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)
Is this slot part of this assignment or not.
slot - the slot to check.boolean isExecutorAssigned(ExecutorDetails executor)
Is the executor assigned or not.
executor - the executor to check it if is assigned.String getTopologyId()
Return the ID of the topology.
Map<ExecutorDetails,WorkerSlot> getExecutorToSlot()
Get the map of executor to WorkerSlot.
Set<ExecutorDetails> getExecutors()
Get the set of all executors.
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.
Map<WorkerSlot,WorkerResources> getScheduledResources()
Get the slot to resource mapping.
Copyright © 2019 The Apache Software Foundation. All rights reserved.