Package org.opennms.netmgt.alarmd
Class Alarmd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.alarmd.Alarmd
-
- All Implemented Interfaces:
Fiber
,PausableFiber
,SpringServiceDaemon
,ThreadAwareEventListener
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class Alarmd extends AbstractServiceDaemon implements ThreadAwareEventListener
Alarm management Daemon- Author:
- jwhite, David Hustace
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
ConstantNAME="alarmd"
protected static Integer
THREADS
-
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 Alarmd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumThreads()
AlarmPersister
getPersister()
getPersistervoid
onEvent(IEvent e)
Listens for all events.protected void
onInit()
onInitvoid
onStart()
onStartvoid
onStop()
onStopvoid
setPersister(AlarmPersister persister)
setPersister-
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
-
NAME
public static final String NAME
ConstantNAME="alarmd"
- See Also:
- Constant Field Values
-
THREADS
protected static final Integer THREADS
-
-
Method Detail
-
onEvent
public void onEvent(IEvent e)
Listens for all events. This method is thread-safe.- Parameters:
e
- aIEvent
object.
-
setPersister
public void setPersister(AlarmPersister persister)
setPersister
- Parameters:
persister
- aAlarmPersister
object.
-
getPersister
public AlarmPersister getPersister()
getPersister
- Returns:
- a
AlarmPersister
object.
-
onInit
protected void onInit()
Description copied from class:AbstractServiceDaemon
onInit
- Specified by:
onInit
in classAbstractServiceDaemon
-
onStart
public void onStart()
Description copied from class:AbstractServiceDaemon
onStart
- Overrides:
onStart
in classAbstractServiceDaemon
-
onStop
public void onStop()
Description copied from class:AbstractServiceDaemon
onStop
- Overrides:
onStop
in classAbstractServiceDaemon
-
getNumThreads
public int getNumThreads()
- Specified by:
getNumThreads
in interfaceThreadAwareEventListener
-
-