Java Code Examples for backtype.storm.task.TopologyContext.getStormId()

The following are Jave code examples for showing how to use getStormId() of the backtype.storm.task.TopologyContext class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: storm-scheduler   File:   Source Code and License Vote up 5 votes
public void prepare(Map stormConf,
                    Object registrationArgument,
                    TopologyContext context,
                    IErrorReporter errorReporter) {
    this.stormId = context.getStormId();
    this.extemptMetrics = new HashSet<>();