public class TestTopologyBuilder extends TopologyBuilder
Constructor and Description |
---|
TestTopologyBuilder(java.lang.String outputLocation) |
TestTopologyBuilder(java.lang.String topologyName,
java.lang.String httpServerUrl) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAllGrouping(java.lang.String child,
java.lang.String parent,
java.lang.String streamId)
Given a child component and its upstream component, add the allGrouping between them with
given streamId
|
HeronTopology |
createTopology() |
BoltDeclarer |
setBolt(java.lang.String id,
IRichBolt bolt,
java.lang.Number parallelismHint)
Define a new bolt in this topology with the specified amount of parallelism.
|
SpoutDeclarer |
setSpout(java.lang.String id,
IRichSpout spout,
java.lang.Number parallelismHint)
Define a new spout in this topology with the specified parallelism.
|
SpoutDeclarer |
setSpout(java.lang.String id,
IRichSpout spout,
java.lang.Number parallelismHint,
int maxExecutionCount) |
void |
setTerminalBoltClass(java.lang.String terminalBoltClass) |
setBolt, setBolt, setBolt, setSpout
public TestTopologyBuilder(java.lang.String outputLocation)
public TestTopologyBuilder(java.lang.String topologyName, java.lang.String httpServerUrl)
public BoltDeclarer setBolt(java.lang.String id, IRichBolt bolt, java.lang.Number parallelismHint)
TopologyBuilder
setBolt
in class TopologyBuilder
id
- the id of this component. This id is referenced by other components that want to consume this bolt's outputs.bolt
- the boltparallelismHint
- the number of tasks that should be assigned to execute this bolt. Each task will run on a thread in a process somewhere around the cluster.public SpoutDeclarer setSpout(java.lang.String id, IRichSpout spout, java.lang.Number parallelismHint)
TopologyBuilder
setSpout
in class TopologyBuilder
id
- the id of this component. This id is referenced by other components that want to consume this spout's outputs.spout
- the spoutparallelismHint
- the number of tasks that should be assigned to execute this spout. Each task will run on a thread in a process somwehere around the cluster.public SpoutDeclarer setSpout(java.lang.String id, IRichSpout spout, java.lang.Number parallelismHint, int maxExecutionCount)
public void setTerminalBoltClass(java.lang.String terminalBoltClass)
public HeronTopology createTopology()
createTopology
in class TopologyBuilder
protected void addAllGrouping(java.lang.String child, java.lang.String parent, java.lang.String streamId)
child
- the child component idparent
- the upstream component idstreamId
- the stream id