<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 19, 2013 at 2:15 PM, Emmanuel Bernard <span dir="ltr"><<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu 2013-12-19 9:46, Galder Zamarreņo wrote:<br>
> > == Example of continuous query atop remote listeners<br>
> ><br>
> > Thinking about how to implement continuous query atop this<br>
> > infrastructure I am missing a few things.<br>
> ><br>
> > The primary problem is that I don't want to enlist a filter id per<br>
> > continuous query I want to run. Not only that but I'd love to be able to<br>
> > add a continuous query on the fly and disable it on the fly as well per<br>
> > client. For that filters and converters are not flexible enough.<br>
> ><br>
> > What is missing is the ability to pass parameters from the client to<br>
> > the remote filter and remote converter. Parameters should be provided<br>
> > *per client*. Say Client 1 register the continuous query listener with<br>
> > "where age > 19" and client 2 registers the CQ listener with "where name<br>
> > = emmanuel". The filter knowing for which client it filters, it will be able to only<br>
> > return the keys that match the query.<br>
><br>
> This all sounds a bit like remote code exectution to me? You're asking for the client to pass some kind of executable thing that acts as a filter. That's a separate feature IMO, which I believe @Tristan is looking into. Once that's in place, I'm happy to enhance stuff in the remote event side to support it.<br>
<br>
</div>I don't think you are correct.<br>
This is not remote execution in the sense of arbitrary code driven by<br>
the client. Remote execution will likely be triggered, render a<br>
result and stop. It will not send matching events in a continuous fashion.<br>
Plus remote execution will likely involve dynamic languages and I'm not<br>
sure we want to go that route for things like continuous query.<br></blockquote></div><br></div><div class="gmail_extra">To be clear, this is exactly the same as the filter parameters that Radim was asking for, right? From Infinispan's point of view, the filter just takes a String parameter, and the fact that that string can be parsed by the filter in a particular language is irrelevant.<br>
<br></div></div>