Re: Ignite events related server nodes
Thank you very much. On Oct 19, 2017 00:33, "vkulichenko" wrote: > You should use disconnect/reconnect events in this case, as described in > provided doc. They are designed exactly for you scenario. > > -Val > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
Re: Ignite events related server nodes
You should use disconnect/reconnect events in this case, as described in provided doc. They are designed exactly for you scenario. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite events related server nodes
Hi, Thank you for answer. e.g. I have 2 server nodes(scaled same node) and 4 clients. I am scaling server node to 0 . Now I have 0 server 4 clients. Now I am again scailing to 1 or 2. And when first server node is connecting I want to do some refreshes in my code (where my client node is located ) ,that refreshes are needed only one time.from 0 nodes to 1(firs connection) .(or from 2 nodes to 0-last disconnection) p.s. As to refreshing it can be for example map clearing,not related to ignite. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite events related server nodes
Discovery events are essential, so they are always enabled, regardless of configuration. As for "last disconnection, or first connection", can you please clarify what you mean by this? What's the use case behind this? Also take a look at this page about client reconnection: https://apacheignite.readme.io/docs/clients-vs-servers#client-reconnection. It seems to me this can be what you're actually looking for. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Ignite events related server nodes
Hi everybody, I want to listen first server node connection , or last server node disconnection,for doing some actions. I wrote the following code ingite.events().localListen(event -> { if(!((DiscoveryEvent) event).eventNode().isClient()){ something(); } return true; }, EventType.EVT_NODE_LEFT); something() method occures every server node disconnection,but I want on last disconnection,or first conncetion. And one more question related events, I read (from documentations) what - "To get notified of any tasks or cache events occurring within the cluster, includeEventTypes property of IgniteConfiguration must be enabled." the above mentioned code works even if I didnt set "includeEventTypes" in IgniteCinfiguration explicitly. Why it is works? Thanks. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/