public class EventSourceTopology extends Object implements EventAggregatorService, EventSourceRegistry
Constructor and Description |
---|
EventSourceTopology(DataBroker dataBroker,
RpcProviderRegistry rpcRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CreateTopicOutput>> |
createTopic(CreateTopicInput input)
Create a new topic.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DestroyTopicOutput>> |
destroyTopic(DestroyTopicInput input)
Destroy a topic.
|
void |
register(EventSource eventSource) |
<T extends EventSource> |
registerEventSource(T eventSource)
Registers the given EventSource for public consumption.
|
void |
unRegister(EventSource eventSource) |
public EventSourceTopology(DataBroker dataBroker, RpcProviderRegistry rpcRegistry)
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CreateTopicOutput>> createTopic(CreateTopicInput input)
EventAggregatorService
createTopic
in interface EventAggregatorService
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DestroyTopicOutput>> destroyTopic(DestroyTopicInput input)
EventAggregatorService
destroyTopic
in interface EventAggregatorService
public void close()
close
in interface AutoCloseable
public void register(EventSource eventSource)
public void unRegister(EventSource eventSource)
public <T extends EventSource> EventSourceRegistration<T> registerEventSource(T eventSource)
EventSourceRegistry
EventSource.getSourceNodeKey()
.registerEventSource
in interface EventSourceRegistry
eventSource
- the EventSource instance to registerEventSourceRegistration.close()
.Copyright © 2019 OpenDaylight. All rights reserved.