public class Component extends Object
Constructor and Description |
---|
Component(ComponentType type,
String compId,
List<ExecutorDetails> execs)
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() |
Set<String> |
getParents() |
ComponentType |
getType() |
String |
toString() |
public Component(ComponentType type, String compId, List<ExecutorDetails> execs)
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()
Copyright © 2019 The Apache Software Foundation. All rights reserved.