org.apache.storm.flux.model

## Class ExecutionContext

- java.lang.Object
- - org.apache.storm.flux.model.ExecutionContext

-     public class ExecutionContext
      extends Object

  Container for all the objects required to instantiate a topology.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExecutionContext(TopologyDef topologyDef, Config config)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExecutionContext

          public ExecutionContext(TopologyDef topologyDef,
                                  Config config)

  - ### Method Detail

    - #### getTopologyDef

          public TopologyDef getTopologyDef()

    - #### addSpout

          public void addSpout(String id,
                               IRichSpout spout)

    - #### addBolt

          public void addBolt(String id,
                              Object bolt)

    - #### getBolt

          public Object getBolt(String id)

    - #### addComponent

          public void addComponent(String id,
                                   Object value)

    - #### getComponent

          public Object getComponent(String id)

Copyright © 2021 The Apache Software Foundation. All rights reserved.