org.apache.sling.discovery.impl.topology
Class TopologyChangeHandler
java.lang.Object
org.apache.sling.discovery.impl.topology.TopologyChangeHandler
- All Implemented Interfaces:
- org.osgi.service.event.EventHandler
@Service(value=org.osgi.service.event.EventHandler.class)
@Properties(value={@Property(name="service.description",value="Cluster View Change Listener 2."),@Property(name="event.topics",value={"org/apache/sling/api/resource/Resource/ADDED","org/apache/sling/api/resource/Resource/CHANGED","org/apache/sling/api/resource/Resource/REMOVED"})})
public class TopologyChangeHandler
- extends Object
- implements org.osgi.service.event.EventHandler
osgi event handler which takes note when the established view changes in the
repository - or when an announcement changed in one of the instances
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext context)
|
void |
handleEvent(org.osgi.service.event.Event event)
Handle osgi events from the repository and take note when
the established view, properties or announcements change - and
inform the DiscoveryServiceImpl in those cases. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopologyChangeHandler
public TopologyChangeHandler()
activate
protected void activate(org.osgi.service.component.ComponentContext context)
handleEvent
public void handleEvent(org.osgi.service.event.Event event)
- Handle osgi events from the repository and take note when
the established view, properties or announcements change - and
inform the DiscoveryServiceImpl in those cases.
- Specified by:
handleEvent
in interface org.osgi.service.event.EventHandler
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.