public interface SchedulerAssignment
Modifier and Type | Method and Description |
---|---|
Set<ExecutorDetails> |
getExecutors()
Return the executors covered by this assignments
|
Map<ExecutorDetails,WorkerSlot> |
getExecutorToSlot()
get the executor -> slot map.
|
Set<WorkerSlot> |
getSlots() |
Map<WorkerSlot,Collection<ExecutorDetails>> |
getSlotToExecutors() |
String |
getTopologyId()
get the topology-id this assignment is for.
|
boolean |
isExecutorAssigned(ExecutorDetails executor)
is the executor assigned?
|
boolean |
isSlotOccupied(WorkerSlot slot)
Does this slot occupied by this assignment?
|
boolean isSlotOccupied(WorkerSlot slot)
Does this slot occupied by this assignment?
slot
- boolean isExecutorAssigned(ExecutorDetails executor)
is the executor assigned?
executor
- String getTopologyId()
get the topology-id this assignment is for.
Map<ExecutorDetails,WorkerSlot> getExecutorToSlot()
get the executor -> slot map.
Set<ExecutorDetails> getExecutors()
Return the executors covered by this assignments
Set<WorkerSlot> getSlots()
Map<WorkerSlot,Collection<ExecutorDetails>> getSlotToExecutors()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.