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
Modifier and Type | Field and Description |
---|---|
static String |
LOG4J_CATEGORY
The log4j category used to log debug messsages and statements.
|
PAUSE_PENDING, PAUSED, RESUME_PENDING
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
Constructor and Description |
---|
Eventd()
Constuctor creates the localhost address(to be used eventually when
eventd originates events during correlation) and the broadcast queue
|
Modifier and Type | Method and Description |
---|---|
EventdServiceManager |
getEventdServiceManager()
getEventdServiceManager
|
BroadcastEventProcessor |
getReceiver()
getReceiver
|
protected void |
onInit()
onInit
|
protected void |
onStart()
onStart
|
protected void |
onStop()
onStop
|
void |
setEventdServiceManager(EventdServiceManager eventdServiceManager)
setEventdServiceManager
|
void |
setReceiver(BroadcastEventProcessor receiver)
setReceiver
|
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, onPause, onResume, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
public static final String LOG4J_CATEGORY
public Eventd()
protected void onInit()
onInit
onInit
in class AbstractServiceDaemon
protected void onStart()
onStart
onStart
in class AbstractServiceDaemon
protected void onStop()
onStop
onStop
in class AbstractServiceDaemon
public EventdServiceManager getEventdServiceManager()
getEventdServiceManager
EventdServiceManager
object.public void setEventdServiceManager(EventdServiceManager eventdServiceManager)
setEventdServiceManager
eventdServiceManager
- a EventdServiceManager
object.public BroadcastEventProcessor getReceiver()
getReceiver
BroadcastEventProcessor
object.public void setReceiver(BroadcastEventProcessor receiver)
setReceiver
receiver
- a BroadcastEventProcessor
object.Copyright © 2021. All rights reserved.