Igor,

I think it's reasonable to add the baseline topology APIs to C++. Can you
plan this for the nearest releases?

Pave, do you have time to do the same for .Net?

--
Denis

---------- Forwarded message ---------
From: aealexsandrov <aealexsand...@gmail.com>
Date: Tue, Aug 14, 2018 at 3:23 AM
Subject: Re: how ignite c++ node set baselinetopology
To: <u...@ignite.apache.org>


Hi,

C++ API doesn't contain the methods to update the baseline. So, in this
case, you can use Java API for it:

Add the code that will listen to the EVT_NODE_JOINED event

private final IgniteEx ignite;

ignite.events().localListen(event -> {
            DiscoveryEvent e = (DiscoveryEvent)event;

            final long topVer = e.topologyVersion();

            ignite.cluster().setBaselineTopology(topVer);

            return true;
        }, EventType.EVT_NODE_JOINED);

The whole example you can see here:

https://apacheignite.readme.io/docs/baseline-topology#section-triggering-rebalancing-programmatically

BR,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to