public class HelloWorldEventSourceManager extends Object implements AutoCloseable
SampleEventSourceGenerator.
This generating process simulates origin of event source.
Actual implementation will identify origin of event source
by various ways (e.g. listen on changes in topology, create connection of devices etc.).
Method addNewEventSource(HelloWorldEventSource eventSource) is called by SampleEventSourceGenerator
when generator created new event source and it want to register it.
Manager registers all added event sources in EventSourceRegistry and store EventSourceRegistration objects.
EventSourceRegistration objects are used to unregister event sources.| Constructor and Description |
|---|
HelloWorldEventSourceManager(org.opendaylight.controller.messagebus.spi.EventSourceRegistry eventSourceRegistry) |
public HelloWorldEventSourceManager(org.opendaylight.controller.messagebus.spi.EventSourceRegistry eventSourceRegistry)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2015. All rights reserved.