Re: how ignite c++ node set baselinetopology

2018-08-16 Thread Igor Sapego
Filed a ticket: [1]

[1] - https://issues.apache.org/jira/browse/IGNITE-9293

Best Regards,
Igor


On Thu, Aug 16, 2018 at 3:28 AM Denis Magda  wrote:

> 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 
> Date: Tue, Aug 14, 2018 at 3:23 AM
> Subject: Re: how ignite c++ node set baselinetopology
> To: 
>
>
> 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/
>


Fwd: how ignite c++ node set baselinetopology

2018-08-15 Thread Denis Magda
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 
Date: Tue, Aug 14, 2018 at 3:23 AM
Subject: Re: how ignite c++ node set baselinetopology
To: 


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/