<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 15 Dec 2010, at 18:43, Vladimir Blagojevic wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div text="#000000" bgcolor="#ffffff">
    On 10-12-15 3:03 PM, Manik Surtani wrote:
    <blockquote cite="mid:4A99AEDE-822A-452A-B166-1A1F81F9602D@jboss.org" type="cite">
      <pre wrap="">I'm gonna cc infinispan-dev as well, so others can pitch in.

But yeah, good start. I think your dissection of the use cases makes sense, except that I think (a) and (c) are essentially the same; only that in the case of (c) the task ignores any data input.  This would raise the question of why would anybody do this, and what purpose does it solve. :-)  So yeah, we could support it as a part of (a), but I am less than convinced of its value.  
</pre>
    </blockquote>
    <br>
    <tt>Ok, no problem. We just have to somehow bootstrap <code class="jive-code jive-java">EntryStreamProcessorContext with no
        access to cache for c case.</code></tt><br></div></blockquote><div><br></div><div>Well, I reckon we provide the ref to the cache. &nbsp;If the impl doesn't make use of it, too bad.</div><br><blockquote type="cite"><div text="#000000" bgcolor="#ffffff">
    <br>
    <blockquote cite="mid:4A99AEDE-822A-452A-B166-1A1F81F9602D@jboss.org" type="cite">
      <pre wrap="">And as for data locality, perhaps this would work: don't define the necessary keys in the Task, but instead provide these when submitting the task. E.g.,

CacheManager.submitTask(task); // task goes everywhere, and receives an input Iterator of all local entries on each node.
CacheManager.submitTask(task, K...); // task goes to certain nodes that contain some or all of K.  Receives an input Iterator of all local entries on each node.

WDYT?
</pre>
    </blockquote>
    <br>
    Yes, I agree except I'd rather not submit task using CacheManager
    API. I'd rather just obtain DistributedTask through CacheManager and
    use task#execute. That we we do not overpollute CacheManager API.</div></blockquote><blockquote type="cite"><div text="#000000" bgcolor="#ffffff">
    <br>
    <br>
    CacheManager cm = ...;
    <br>
    DistributedTask task = cm.newDistributedTask(...);
    <br>
    task.execute();<br>
    task.execute(K...);<br></div></blockquote><div><br></div><div>+1.</div><br><blockquote type="cite"><div text="#000000" bgcolor="#ffffff">Ok, if we agree on this what else remains to be resolved? What did
    you have in mind for further discussion?<br></div></blockquote><div><br></div><div>Just to finalise the API. &nbsp;Would this be specific to a cache or a cache manager? &nbsp;E.g., should it be Cache.newDistributedTask()?</div><div><br></div><div>Cheers</div><div>Manik</div><div>--</div></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div><div><br></div><div>Lead, Infinispan</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>