Re: Distributed closure and cache.

2018-07-31 Thread F.D.
Perfect!! You saved me! Thanks, F.D. On Tue, Jul 31, 2018 at 4:05 PM Dmitriy Govorukhin < dmitriy.govoruk...@gmail.com> wrote: > HI, > > Yes, you can. Try to do something like this > > ignite.compute().call(() -> { > // Get local ignite instance (local in compute task). > Ignite remoteIg = Ig

Re: Distributed closure and cache.

2018-07-31 Thread Dmitriy Govorukhin
HI, Yes, you can. Try to do something like this ignite.compute().call(() -> { // Get local ignite instance (local in compute task). Ignite remoteIg = Ignition.localIgnite(); IgniteCache cache = remoteIg.cache("cacheName"); Object val = cache.get("someKey"); return "result"; }); or use @Ignite

Distributed closure and cache.

2018-07-31 Thread F.D.
Hi, First, I want sat thank you for your job, and for the help you gave me. I've a new question for you. I need to get a cache value inside the method Call of my closure. Is it possibile? I need to start a new node?!? (ignite = Ignition::Start(cfg)) Can I use an already initialized variable?!? T