ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Code execution on data node
Date Tue, 19 Jul 2016 23:39:56 GMT
Hi Ionut,

This will always return the same node (the first one in the list). If you
want to execute a closure on one of the nodes where CACHE exists, just do
this:

ignite.compute(ignite.cluster().forDataNodes("CACHE")).broadcast(...);

Also note that clients do not execute compute logic unless you explicitly
ask about that. So even the code below will always be executed on one of the
server nodes (but will not check if a particular cache exists on this node).

ignite.compute().broadcast(...);

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Code-execution-on-data-node-tp6387p6398.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message