Class ForwardingEventListener
- java.lang.Object
-
- org.opennms.plugins.elasticsearch.rest.ForwardingEventListener
-
- All Implemented Interfaces:
EventListener
public class ForwardingEventListener extends Object implements EventListener
This event sends incoming events to anEventForwarder
that uses Jest to forward events to an external Elasticsearch.
-
-
Constructor Summary
Constructors Constructor Description ForwardingEventListener(EventForwarder eventForwarder, EventIpcManager eventIpcManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
String
getName()
Return the id of the listenervoid
init()
void
onEvent(IEvent event)
Process a sent event.
-
-
-
Constructor Detail
-
ForwardingEventListener
public ForwardingEventListener(EventForwarder eventForwarder, EventIpcManager eventIpcManager)
-
-
Method Detail
-
init
public void init()
-
destroy
public void destroy()
-
onEvent
public void onEvent(IEvent event)
Process a sent event. This method is invoked by the JMS topic session when a new event is available for processing. Currently only text based messages are processed by this callback. Each message is examined for its Universal Event Identifier and the appropriate action is taking based on each UEI.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
event
- aIEvent
object.
-
getName
public String getName()
Description copied from interface:EventListener
Return the id of the listener- Specified by:
getName
in interfaceEventListener
- Returns:
- a
String
object.
-
-