Is there a way by which i could get to know when elasticsearch server start/stops. Something like state listener.
I'm using java to connect to elasticsearch node. The java code is responsible for inserting documents into elasticsearch. If while inserting data, elasticsearch stops (or is killed manually), the documents should not be processed till the server is on. Although I get NoNodeAvailable exception in such case, but it would be better to get a listener interface for nodes.
Something like I have already implemented for cassandra using "Host.stateListener".
Any input appreciated