Using vmware vsphere 6.7 and vim25 apis.I have a third party plugin in vsphere web client.I need to trigger a method in my third party plugin(code in java) whenever a host is added in the vcenter cluster i.e. I need to monitor the addition of hosts in realtime.Currently the plugin is polling (for every 5 minutes) for the hosts present and accordingly triggering the corresponding method.But for a rare task like addition of hosts ,polling every 5 minutes gives performance issues.
So,my question is that how shall I get realtime notification from vcenter on such kind of events and trigger our third party code?
I have searched for methods like waitForUpdatesEx but not quite sure whether it would work or not.
Thanks in advance