OpenNMS API 1.2.3

org.opennms.netmgt.xmlrpcd
Class BroadcastEventProcessor

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

final class BroadcastEventProcessor
extends java.lang.Object
implements EventListener

Author:
James Zuo , OpenNMS

Field Summary
private  FifoQueue m_eventQ
          The location where incoming events of interest are enqueued
private  int m_maxQSize
          The maximam size of the event queue.
 
Constructor Summary
(package private) BroadcastEventProcessor(FifoQueue eventQ, int maxQSize, java.util.Enumeration eventEnum)
          Create message selector to set to the subscription
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_eventQ

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


m_maxQSize

private int m_maxQSize
The maximam size of the event queue.

Constructor Detail

BroadcastEventProcessor

BroadcastEventProcessor(FifoQueue eventQ,
                        int maxQSize,
                        java.util.Enumeration eventEnum)
Create message selector to set to the subscription

Method Detail

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.