org.opennms.netmgt.eventd
Class BroadcastEventProcessor

java.lang.Object
  extended by org.opennms.netmgt.eventd.BroadcastEventProcessor
All Implemented Interfaces:
EventListener

public class BroadcastEventProcessor
extends Object
implements EventListener


Constructor Summary
BroadcastEventProcessor(EventIpcManager eventIpcManager, EventConfDao eventConfDao)
           
 
Method Summary
 void close()
           Closes the current connections to the event manager if they are still active.
protected  void finalize()
          This method may be invoked by the garbage thresholding.
 String getName()
           
 void onEvent(Event event)
          This method is invoked by the event manager when a new event is available for processing.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastEventProcessor

public BroadcastEventProcessor(EventIpcManager eventIpcManager,
                               EventConfDao eventConfDao)
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 Throwable
This method may be invoked by the garbage thresholding. Once invoked it ensures that the close method is called at least once during the cycle of this object.

Overrides:
finalize in class Object
Throws:
Throwable

getName

public String getName()
Specified by:
getName in interface EventListener

onEvent

public void onEvent(Event 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:
onEvent in interface EventListener
Parameters:
event - The event message.


Copyright © 2009. All Rights Reserved.