Class Eventd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.eventd.Eventd
-
- All Implemented Interfaces:
Fiber
,PausableFiber
,SpringServiceDaemon
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public final class Eventd extends AbstractServiceDaemon
Eventd listens for events from the discovery, capsd, trapd processes and sends events to the Master Station when queried for.
Eventd receives events sent in as XML, looks up the event.conf and adds information to these events and stores them to the db. It also reconverts them back to XML to be sent to other processes like 'actiond'
Process like trapd, capsd etc. that are local to the distributed poller send events to the eventd. Events can also be sent via TCP or UDP to eventd.
Eventd listens for incoming events, loads info from the 'event.conf', adds events to the database and sends the events added to the database to subscribed listeners. It also maintains a servicename to serviceid mapping from the services table so as to prevent a database lookup for each incoming event
The number of threads that processes events is configurable via the eventd configuration xml
- Author:
- Sowmya Nataraj , OpenNMS.org
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOG4J_CATEGORY
The log4j category used to log debug messsages and statements.-
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
-
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
-
-
Constructor Summary
Constructors Constructor Description Eventd()
Constuctor creates the localhost address(to be used eventually when eventd originates events during correlation) and the broadcast queue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventdServiceManager
getEventdServiceManager()
getEventdServiceManagerBroadcastEventProcessor
getReceiver()
getReceiverprotected void
onInit()
onInitprotected void
onStart()
onStartprotected void
onStop()
onStopvoid
setEventdServiceManager(EventdServiceManager eventdServiceManager)
setEventdServiceManagervoid
setReceiver(BroadcastEventProcessor receiver)
setReceiver-
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, onPause, onResume, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
-
-
-
-
Field Detail
-
LOG4J_CATEGORY
public static final java.lang.String LOG4J_CATEGORY
The log4j category used to log debug messsages and statements.- See Also:
- Constant Field Values
-
-
Method Detail
-
onInit
protected void onInit()
onInit
- Specified by:
onInit
in classAbstractServiceDaemon
-
onStart
protected void onStart()
onStart
- Overrides:
onStart
in classAbstractServiceDaemon
-
onStop
protected void onStop()
onStop
- Overrides:
onStop
in classAbstractServiceDaemon
-
getEventdServiceManager
public EventdServiceManager getEventdServiceManager()
getEventdServiceManager
- Returns:
- a
EventdServiceManager
object.
-
setEventdServiceManager
public void setEventdServiceManager(EventdServiceManager eventdServiceManager)
setEventdServiceManager
- Parameters:
eventdServiceManager
- aEventdServiceManager
object.
-
getReceiver
public BroadcastEventProcessor getReceiver()
getReceiver
- Returns:
- a
BroadcastEventProcessor
object.
-
setReceiver
public void setReceiver(BroadcastEventProcessor receiver)
setReceiver
- Parameters:
receiver
- aBroadcastEventProcessor
object.
-
-