OpenNMS API 1.2.3

org.opennms.netmgt.scriptd
Class BroadcastEventProcessor

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

final class BroadcastEventProcessor
extends java.lang.Object
implements EventListener

This class receives all events on behalf of the Scriptd service. All events are placed on a queue, so they can be handled by the "Executor" (this allows the Exceutor to pause and resume without losing events).

Author:
Jim Doble , OpenNMS

Field Summary
private  FifoQueue m_execQ
          The location where executable events are enqueued to be executed.
 
Constructor Summary
(package private) BroadcastEventProcessor(FifoQueue execQ)
          This constructor subscribes to eventd for all events
 
Method Summary
 void close()
          Close the BroadcastEventProcessor
 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_execQ

private FifoQueue m_execQ
The location where executable events are enqueued to be executed.

Constructor Detail

BroadcastEventProcessor

BroadcastEventProcessor(FifoQueue execQ)
This constructor subscribes to eventd for all events

Parameters:
execQ - The queue where executable events are stored.
Method Detail

close

public void close()
Close the BroadcastEventProcessor


onEvent

public void onEvent(Event event)
This method is invoked by the EventIpcManager when a new event is available for processing. Each event is queued for handling by the Executor.

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
Returns:
The ID of this event listener.

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.