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/

Reply via email to