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 voidclose()ListenableFuture<RpcResult<CreateTopicOutput>>createTopic(CreateTopicInput input)Create a new topic.ListenableFuture<RpcResult<DestroyTopicOutput>>destroyTopic(DestroyTopicInput input)Destroy a topic.voidregister(EventSource eventSource)<T extends EventSource>
EventSourceRegistration<T>registerEventSource(T eventSource)Registers the given EventSource for public consumption.voidunRegister(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:EventAggregatorServiceCreate 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:
createTopicin interfaceEventAggregatorService
-
destroyTopic
public ListenableFuture<RpcResult<DestroyTopicOutput>> destroyTopic(DestroyTopicInput input)
Description copied from interface:EventAggregatorServiceDestroy a topic. No further messages will be delivered to it.- Specified by:
destroyTopicin interfaceEventAggregatorService
-
close
public void close()
- Specified by:
closein 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:EventSourceRegistryRegisters the given EventSource for public consumption. The EventSource is associated with the node identified viaEventSource.getSourceNodeKey().- Specified by:
registerEventSourcein interfaceEventSourceRegistry- Parameters:
eventSource- the EventSource instance to register- Returns:
- an EventSourceRegistration instance that is used to unregister the EventSource
via
EventSourceRegistration.close().
-
-