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() |
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)
slot
- boolean isExecutorAssigned(ExecutorDetails executor)
executor
- String getTopologyId()
Map<ExecutorDetails,WorkerSlot> getExecutorToSlot()
Set<ExecutorDetails> getExecutors()
Set<WorkerSlot> getSlots()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.