public class ExecutionContext extends Object
Container for all the objects required to instantiate a topology.
Constructor and Description |
---|
ExecutionContext(TopologyDef topologyDef,
Config config) |
Modifier and Type | Method and Description |
---|---|
void |
addBolt(String id,
Object bolt) |
void |
addComponent(String id,
Object value) |
void |
addSpout(String id,
IRichSpout spout) |
Object |
getBolt(String id) |
Object |
getComponent(String id) |
TopologyDef |
getTopologyDef() |
public ExecutionContext(TopologyDef topologyDef, Config config)
public TopologyDef getTopologyDef()
public void addSpout(String id, IRichSpout spout)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.