Class EventDispatcherImpl
- java.lang.Object
-
- org.opennms.features.events.sink.dispatcher.EventDispatcherImpl
-
- All Implemented Interfaces:
EventForwarder
public class EventDispatcherImpl extends Object implements EventForwarder
This Class is used to send events from minion, not exposed on OpenNMS.
-
-
Constructor Summary
Constructors Constructor Description EventDispatcherImpl(MessageDispatcherFactory messageDispatcherFactory, EventdConfig eventdConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncDispatcher<Event>getAsyncDispatcher()voidsendNow(Event event)Asynchronously sends an event to eventd.voidsendNow(Log eventLog)Asynchronously sends a set of events to eventd.voidsendNowSync(Event event)Synchronously sends an event to eventd.voidsendNowSync(Log eventLog)Synchronously sends a set of events to eventd.
-
-
-
Constructor Detail
-
EventDispatcherImpl
public EventDispatcherImpl(MessageDispatcherFactory messageDispatcherFactory, EventdConfig eventdConfig)
-
-
Method Detail
-
sendNow
public void sendNow(Event event)
Description copied from interface:EventForwarderAsynchronously sends an event to eventd.- Specified by:
sendNowin interfaceEventForwarder- Parameters:
event- aEventobject.
-
sendNow
public void sendNow(Log eventLog)
Description copied from interface:EventForwarderAsynchronously sends a set of events to eventd.- Specified by:
sendNowin interfaceEventForwarder- Parameters:
eventLog- aLogobject.
-
sendNowSync
public void sendNowSync(Event event)
Description copied from interface:EventForwarderSynchronously sends an event to eventd.- Specified by:
sendNowSyncin interfaceEventForwarder- Parameters:
event- aEventobject.
-
sendNowSync
public void sendNowSync(Log eventLog)
Description copied from interface:EventForwarderSynchronously sends a set of events to eventd.- Specified by:
sendNowSyncin interfaceEventForwarder- Parameters:
eventLog- aLogobject.
-
getAsyncDispatcher
public AsyncDispatcher<Event> getAsyncDispatcher()
-
-