Re: AFTER_NODE_START event

2018-09-10 Thread Lokesh Sharma
Great. Thank you for looking into it. On Mon, Sep 10, 2018, 9:11 PM Maxim.Pudov wrote: > Hello! > The answer is yes. It is safe to subscribe to AFTER_NODE_START. > I've just checked the sequence of events happening during the node startup > and org.apache.ignite.events.EventType#EVT_NODE_JOINED

Re: AFTER_NODE_START event

2018-09-10 Thread Maxim.Pudov
Hello! The answer is yes. It is safe to subscribe to AFTER_NODE_START. I've just checked the sequence of events happening during the node startup and org.apache.ignite.events.EventType#EVT_NODE_JOINED happens *before *org.apache.ignite.lifecycle.LifecycleEventType#AFTER_NODE_START. With Regards,

AFTER_NODE_START event

2018-09-10 Thread Lokesh Sharma
I require a record to be present in the ignite database all the time. For this I have written a function like following: > > @PostConstruct > public void createRecordIfNotPresent() { > if (entityRepository.findById(1) == null) { > createRecord() > } > } I have added @PostContruct