Package org.apache.storm.scheduler
Class Component
- java.lang.Object
-
- org.apache.storm.scheduler.Component
-
public class Component extends Object
-
-
Constructor Summary
Constructors Constructor Description Component(ComponentType type, String compId, List<ExecutorDetails> execs, Map<GlobalStreamId,Grouping> inputs)Create a new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(Component child)Add a child link.Set<String>getChildren()List<ExecutorDetails>getExecs()StringgetId()Map<GlobalStreamId,Grouping>getInputs()Set<String>getParents()ComponentTypegetType()StringtoString()
-
-
-
Constructor Detail
-
Component
public Component(ComponentType type, String compId, List<ExecutorDetails> execs, Map<GlobalStreamId,Grouping> inputs)
Create a new component.- Parameters:
type- the type of component this iscompId- the id of the componentexecs- the executors for this component.
-
-
Method Detail
-
addChild
public void addChild(Component child)
Add a child link.- Parameters:
child- a child the consumes from this
-
getId
public String getId()
-
getExecs
public List<ExecutorDetails> getExecs()
-
getType
public ComponentType getType()
-
getInputs
public Map<GlobalStreamId,Grouping> getInputs()
-
-