Thank you very much Pavel.
I will check both possibilities. In that case I'm not concerned a lot
about performance, because it's not for normal operation.
It's just a way to retrieve some information on running services to
catch some information in case of problems.

Cheers,

On Thu, 20 Oct 2022 at 16:36, Pavel Tupitsyn <[email protected]> wrote:
>
> Hi, there is no such method.
>
> I suggest using IgniteCompute.broadcast - it is the way to invoke some code 
> on multiple nodes simultaneously.
>
> If you absolutely have to do this with services:
> 1. Call IgniteServices.serviceDescriptors
> 2. Find the right service in the resulting collection
> 3. Iterate over ServiceDescriptor.topologySnapshot
> 4. Obtain a service proxy for every node from 3: 
> ignite.services(ignite.cluster().forNodeId(uuid)).serviceProxy(...)
> 5. Invoke the method on every proxy
>
> I don't recommend this though - not a right thing to do, and perf would not 
> be good.
>
> Pavel
>
>
>
> On Thu, Oct 20, 2022 at 5:12 PM Joan Pujol <[email protected]> wrote:
>>
>> Hi,
>>
>> Is there a way that I can call a remote service method in all of the
>> nodes where the service is deployed?
>>
>> A lot of thanks in advance.
>>
>> --
>> Joan Jesús Pujol Espinar
>> http://www.joanpujol.cat



-- 
Joan Jesús Pujol Espinar
http://www.joanpujol.cat
https://play.google.com/store/apps/developer?id=lujop&hl=ca

Reply via email to