Monday, November 14, 2011 12:10 PM
Can I add the consumers or producers after the query has started in streaminsight? If yes how can I do that?
Thursday, November 17, 2011 7:50 AMModeratorHi Raju,
To start a query, it needs to bind to instances of input (producer) and output (consumer) adapters. The adapters may need to be created and interact with the StreamInsight server when the query is started. You may consider to designing appropriate adapters before the query started.
For more information, please have a look at the life cycle of adapter: Creating Input and Output Adapters.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Thursday, November 17, 2011 11:41 AM
No, you can't.
Producers are adding the events into the query for processing and are attached by Linq statements in your code ... so there really is no way that you could do this.
You can use Dynamic Query Composition (DQC) to create a stream from a running query and then attach an output adapter to it ... which will give you the same effect as adding a consumer to a running query.
What is your use case for this?
DevBiker (aka J Sawyer)
If I answered your question, please mark as answer.
If my post was helpful, please mark as helpful.
- Marked As Answer by Stephanie LvModerator Thursday, November 24, 2011 9:17 AM
Friday, November 18, 2011 2:53 PM
Yes I realized that I cannot add consumers or producers once the query has started. I took the help of Publish stream to handle this scenario. What's your take on this approach?
But surely I will have a look at DQC to see if it provide a better solution.
Thanks for all the responses.
Sunday, November 20, 2011 4:16 AM