Package org.opennms.netmgt.syslogd
Class Syslogd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.syslogd.Syslogd
-
- All Implemented Interfaces:
Fiber
,PausableFiber
,SpringServiceDaemon
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class Syslogd extends AbstractServiceDaemon
The received messages are converted into XML and sent to eventd.
Note: Syslogd is a PausableFiber so as to receive control events. However, a 'pause' on Syslogd has no impact on the receiving and processing of syslog messages.
- Author:
- Mathew Brozowski, David Hustace, DJ Gregor, Johan Edstrom, Mike Huot
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOG4J_CATEGORY
The name of the logging category for Syslogd.-
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 Syslogd()
Constructor for Syslogd.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyslogReceiver
getSyslogReceiver()
void
handleReloadEvent(IEvent e)
protected void
onInit()
onInitprotected void
onStart()
onStartprotected void
onStop()
onStopvoid
setSyslogReceiver(SyslogReceiver receiver)
-
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 name of the logging category for Syslogd.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSyslogReceiver
public SyslogReceiver getSyslogReceiver()
-
setSyslogReceiver
public void setSyslogReceiver(SyslogReceiver receiver)
-
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
-
handleReloadEvent
public void handleReloadEvent(IEvent e)
-
-