Hooks for knowing when topology has changed

how to know when a shard has moved or a new node is added in elasticsearch.
is there any plugin/hook in java to do so?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8661cc3a-8261-4fa6-adc3-aca59eadc6e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.