Class EventSourceTopology
- java.lang.Object
-
- org.opendaylight.controller.messagebus.app.impl.EventSourceTopology
-
- All Implemented Interfaces:
AutoCloseable
,EventSourceRegistry
,EventAggregatorService
,RpcService
public class EventSourceTopology extends Object implements EventAggregatorService, EventSourceRegistry
-
-
Constructor Summary
Constructors Constructor Description EventSourceTopology(DataBroker dataBroker, RpcProviderService providerService, RpcConsumerRegistry rpcService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ListenableFuture<RpcResult<CreateTopicOutput>>
createTopic(CreateTopicInput input)
Create a new topic.ListenableFuture<RpcResult<DestroyTopicOutput>>
destroyTopic(DestroyTopicInput input)
Destroy a topic.void
register(EventSource eventSource)
<T extends EventSource>
EventSourceRegistration<T>registerEventSource(T eventSource)
Registers the given EventSource for public consumption.void
unRegister(EventSource eventSource)
-
-
-
Constructor Detail
-
EventSourceTopology
public EventSourceTopology(DataBroker dataBroker, RpcProviderService providerService, RpcConsumerRegistry rpcService)
-
-
Method Detail
-
createTopic
public ListenableFuture<RpcResult<CreateTopicOutput>> createTopic(CreateTopicInput input)
Description copied from interface:EventAggregatorService
Create a new topic. A topic is an aggregation of several notification types from a set of nodes. Each successful invocation results in a unique topic being created. The caller is responsible for removing the topic once it is no longer needed.- Specified by:
createTopic
in interfaceEventAggregatorService
-
destroyTopic
public ListenableFuture<RpcResult<DestroyTopicOutput>> destroyTopic(DestroyTopicInput input)
Description copied from interface:EventAggregatorService
Destroy a topic. No further messages will be delivered to it.- Specified by:
destroyTopic
in interfaceEventAggregatorService
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
register
public void register(EventSource eventSource)
-
unRegister
public void unRegister(EventSource eventSource)
-
registerEventSource
public <T extends EventSource> EventSourceRegistration<T> registerEventSource(T eventSource)
Description copied from interface:EventSourceRegistry
Registers the given EventSource for public consumption. The EventSource is associated with the node identified viaEventSource.getSourceNodeKey()
.- Specified by:
registerEventSource
in interfaceEventSourceRegistry
- Parameters:
eventSource
- the EventSource instance to register- Returns:
- an EventSourceRegistration instance that is used to unregister the EventSource
via
EventSourceRegistration.close()
.
-
-