|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object backtype.storm.scheduler.SchedulerAssignmentImpl
public class SchedulerAssignmentImpl
Constructor Summary | |
---|---|
SchedulerAssignmentImpl(java.lang.String topologyId,
java.util.Map<ExecutorDetails,WorkerSlot> executorToSlots)
|
Method Summary | |
---|---|
void |
assign(WorkerSlot slot,
java.util.Collection<ExecutorDetails> executors)
Assign the slot to executors. |
java.util.Set<ExecutorDetails> |
getExecutors()
Return the executors covered by this assignments |
java.util.Map<ExecutorDetails,WorkerSlot> |
getExecutorToSlot()
get the executor -> slot map. |
java.lang.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(java.lang.String topologyId, java.util.Map<ExecutorDetails,WorkerSlot> executorToSlots)
Method Detail |
---|
public void assign(WorkerSlot slot, java.util.Collection<ExecutorDetails> executors)
slot
- executors
- public void unassignBySlot(WorkerSlot slot)
slot
- public boolean isSlotOccupied(WorkerSlot slot)
isSlotOccupied
in interface SchedulerAssignment
slot
-
public boolean isExecutorAssigned(ExecutorDetails executor)
SchedulerAssignment
isExecutorAssigned
in interface SchedulerAssignment
public java.lang.String getTopologyId()
SchedulerAssignment
getTopologyId
in interface SchedulerAssignment
public java.util.Map<ExecutorDetails,WorkerSlot> getExecutorToSlot()
SchedulerAssignment
getExecutorToSlot
in interface SchedulerAssignment
public java.util.Set<ExecutorDetails> getExecutors()
getExecutors
in interface SchedulerAssignment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |