|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbacktype.storm.scheduler.SchedulerAssignmentImpl
public class SchedulerAssignmentImpl
| Constructor Summary | |
|---|---|
SchedulerAssignmentImpl(String topologyId,
Map<ExecutorDetails,WorkerSlot> executorToSlots)
|
|
| Method Summary | |
|---|---|
void |
assign(WorkerSlot slot,
Collection<ExecutorDetails> executors)
Assign the slot to executors. |
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? |
void |
unassignBySlot(WorkerSlot slot)
Release the slot occupied by this assignment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchedulerAssignmentImpl(String topologyId,
Map<ExecutorDetails,WorkerSlot> executorToSlots)
| Method Detail |
|---|
public Set<WorkerSlot> getSlots()
getSlots in interface SchedulerAssignment
public void assign(WorkerSlot slot,
Collection<ExecutorDetails> executors)
slot - executors - public void unassignBySlot(WorkerSlot slot)
slot - public boolean isSlotOccupied(WorkerSlot slot)
isSlotOccupied in interface SchedulerAssignmentslot -
public boolean isExecutorAssigned(ExecutorDetails executor)
SchedulerAssignment
isExecutorAssigned in interface SchedulerAssignmentpublic String getTopologyId()
SchedulerAssignment
getTopologyId in interface SchedulerAssignmentpublic Map<ExecutorDetails,WorkerSlot> getExecutorToSlot()
SchedulerAssignment
getExecutorToSlot in interface SchedulerAssignmentpublic Set<ExecutorDetails> getExecutors()
getExecutors in interface SchedulerAssignment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||