public interface TopologyEventListener
TopologyEventListenerservice interface may be implemented by components interested in being made aware of changes in the topology.
Upon registration and whenever changes in the topology occur, this service is informed.
void handleTopologyEvent(TopologyEvent event)
TopologyEvent contains details about what changed.
The supported event types are:
TOPOLOGY_INITsent when the
TopologyEventListenerwas first bound to the discovery service - represents the initial state of the topology at that time.
TOPOLOGY_CHANGINGsent when the discovery service discovered a change in the topology and has started to settle the change. This event is sent before
TOPOLOGY_CHANGEDbut is optional
TOPOLOGY_CHANGEDsent when the discovery service discovered a change in the topology and has settled it.
PROPERTIES_CHANGEDsent when the one or many properties have changed in an instance in the current topology
event- The topology event
Copyright © 2014 The Apache Software Foundation. All rights reserved.