public class Component extends Object
Constructor and Description |
---|
Component(ComponentType type,
String compId,
List<ExecutorDetails> execs,
Map<GlobalStreamId,Grouping> inputs)
Create a new component.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Component child)
Add a child link.
|
Set<String> |
getChildren() |
List<ExecutorDetails> |
getExecs() |
String |
getId() |
Map<GlobalStreamId,Grouping> |
getInputs() |
Set<String> |
getParents() |
ComponentType |
getType() |
String |
toString() |
public Component(ComponentType type, String compId, List<ExecutorDetails> execs, Map<GlobalStreamId,Grouping> inputs)
Create a new component.
type
- the type of component this iscompId
- the id of the componentexecs
- the executors for this component.public void addChild(Component child)
Add a child link.
child
- a child the consumes from thispublic String getId()
public List<ExecutorDetails> getExecs()
public ComponentType getType()
public Map<GlobalStreamId,Grouping> getInputs()
Copyright © 2022 The Apache Software Foundation. All rights reserved.