org.opennms.netmgt.trapd
Class BroadcastEventProcessor

java.lang.Object
  extended by org.opennms.netmgt.trapd.BroadcastEventProcessor
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public final class BroadcastEventProcessor
extends Object
implements EventListener, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

Author:
Tarus Balog , OpenNMS

Constructor Summary
BroadcastEventProcessor(EventIpcManager eventMgr, TrapdIpMgr trapdIpMgr)
           
 
Method Summary
 void afterPropertiesSet()
           
 void close()
          Unsubscribe from eventd
 void destroy()
           
 EventIpcManager getEventManager()
           
 String getName()
          Return an id for this event listener
 TrapdIpMgr getTrapdIpMgr()
           
 void onEvent(Event event)
          This method is invoked by the EventIpcManager when a new event is available for processing.
 void open()
          Create message selector to set to the subscription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastEventProcessor

public BroadcastEventProcessor(EventIpcManager eventMgr,
                               TrapdIpMgr trapdIpMgr)
Method Detail

getEventManager

public EventIpcManager getEventManager()

getTrapdIpMgr

public TrapdIpMgr getTrapdIpMgr()

open

public void open()
Create message selector to set to the subscription


close

public void close()
Unsubscribe from eventd


afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

onEvent

public void onEvent(Event event)
This method is invoked by the EventIpcManager 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

getName

public String getName()
Return an id for this event listener

Specified by:
getName in interface EventListener


Copyright © 2009. All Rights Reserved.