OpenNMS API 1.2.3

org.opennms.netmgt.rtc
Class BroadcastEventProcessor

java.lang.Object
  extended byorg.opennms.netmgt.rtc.BroadcastEventProcessor
All Implemented Interfaces:
EventListener

final class BroadcastEventProcessor
extends java.lang.Object
implements EventListener

BroadcastEventProcessor is responsible for receiving events from eventd and queuing them to the data updaters.

Author:
Sowmya Nataraj , OpenNMS

Field Summary
private  FifoQueue m_updaterQ
          The location where incoming events of interest are enqueued
 
Constructor Summary
(package private) BroadcastEventProcessor(FifoQueue updaterQ)
          Constructor
 
Method Summary
 void close()
          Unsubscribe from eventd
 java.lang.String getName()
          Return an id for this event listener
 void onEvent(Event event)
          This method is invoked by the EventIpcManager when a new event is available for processing.
 void start()
          Create a list of UEIs of interest to the RTC and subscribe to eventd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_updaterQ

private FifoQueue m_updaterQ
The location where incoming events of interest are enqueued

Constructor Detail

BroadcastEventProcessor

BroadcastEventProcessor(FifoQueue updaterQ)
Constructor

Parameters:
updaterQ - The queue where events of interest are added.
Method Detail

start

public void start()
Create a list of UEIs of interest to the RTC and subscribe to eventd


close

public void close()
Unsubscribe from eventd


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 java.lang.String getName()
Return an id for this event listener

Specified by:
getName in interface EventListener

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.