How to create an instance of a parameterized bolt coded in Clojure DSL ?

38 views
Skip to first unread message

Hussein B.

unread,
Nov 19, 2012, 7:22:22 AM11/19/12
to storm...@googlegroups.com
Hi,

My topology is coded in Clojure DSL and I use clojure.test to test it (with the Mockito help to mock tuples and other artifacts).
To create an instance of the bolt ==>  

 (let [bolt mycore/amazing-bolt])

Now I changed some bolts to "parameterized bolts". How to create an instance of it (according to the previous line context) ?

Thanks for help and time.

Nathan Marz

unread,
Nov 19, 2012, 8:23:58 PM11/19/12
to storm...@googlegroups.com
A parameterized bolt is just a function. (parameterized-bolt "param1" 2 3)
--
Twitter: @nathanmarz
http://nathanmarz.com

Reply all
Reply to author
Forward
0 new messages