Package org.opennms.netmgt.eventd
Class BroadcastEventProcessor
- java.lang.Object
-
- org.opennms.netmgt.eventd.BroadcastEventProcessor
-
- All Implemented Interfaces:
EventListener
public class BroadcastEventProcessor extends Object implements EventListener
BroadcastEventProcessor class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description BroadcastEventProcessor(EventIpcManager eventIpcManager, EventConfDao eventConfDao)Constructor for BroadcastEventProcessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the current connections to the event manager if they are still active.protected voidfinalize()This method may be invoked by the garbage thresholding.StringgetName()getNamevoidonEvent(IEvent event)Process a sent event.
-
-
-
Constructor Detail
-
BroadcastEventProcessor
public BroadcastEventProcessor(EventIpcManager eventIpcManager, EventConfDao eventConfDao)
Constructor for BroadcastEventProcessor.
- Parameters:
eventIpcManager- aEventIpcManagerobject.eventConfDao- aEventConfDaoobject.
-
-
Method Detail
-
close
public void close()
Closes the current connections to the event manager if they are still active. This call may be invoked more than once safely and may be invoked during object finalization.
-
finalize
protected void finalize() throws ThrowableThis method may be invoked by the garbage thresholding. Once invoked it ensures that theclosemethod is called at least once during the cycle of this object.
-
getName
public String getName()
getName
- Specified by:
getNamein interfaceEventListener- Returns:
- a
Stringobject.
-
onEvent
public void onEvent(IEvent event)
Process a sent event. This method is invoked by the event manager when a new event is available for processing. Each message is examined for its Universal Event Identifier and the appropriate action is taking based on each UEI.- Specified by:
onEventin interfaceEventListener- Parameters:
event- aIEventobject.
-
-