You get a handle to TopologyContext in the prepare method of your
spout/bolt.

http://nathanmarz.github.io/storm/doc/backtype/storm/task/TopologyContext.html#getThisTaskId()

On Mon, Sep 29, 2014 at 11:37 AM, Nick Katsipoulakis <[email protected]>
wrote:

> Hello,
>
> How can I get the task ID of a bolt in a topology? I need to get it in
> order to perform an emitDirect() from a Spout.
>
> Thanks,
> Nick
>
>

Reply via email to