Skip to content

No way to call methods on bolts/spouts in the topology DSL #99

@tlrobinson

Description

@tlrobinson

There doesn't appear to be a way to call instance methods on bolts or spouts in the DSL, e.x. as is required here: https://github.com/ptgoetz/storm-jms/blob/master/examples/src/main/java/backtype/storm/contrib/jms/example/ExampleJmsTopology.java#L63-L67

Perhaps the instance should be passed to the block, so you can do something like this:

spout JmsSpout, :id => :events_jms do |spout|
    spout.setJmsProvider(jmsQueueProvider)
    # etc
    output_fields :bytes
end

Metadata

Metadata

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions