Package org.opennms.netmgt.actiond
Class Actiond
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.actiond.Actiond
-
- All Implemented Interfaces:
Fiber,PausableFiber,SpringServiceDaemon,ServiceDaemon,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public final class Actiond extends AbstractServiceDaemon
This class is used to represent the auto action execution service. When an event is received by this service that has one of either a notification, trouble ticket, or auto action then a process is launched to execute the appropriate commands.- Author:
- Mike Davidson , Brian Weaver , OpenNMS.org
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiondConfigFactorygetActiondConfig()getActiondConfigorg.opennms.netmgt.actiond.BroadcastEventProcessorgetEventReader()getEventReaderorg.opennms.netmgt.actiond.ExecutorgetExecutor()getExecutorstatic ActiondgetInstance()Returns the singular instance of the actiond daemon.protected voidonInit()onInitprotected voidonPause()onPauseprotected voidonResume()onResumeprotected voidonStart()onStartprotected voidonStop()onStopvoidsetActiondConfig(ActiondConfigFactory actiondConfig)setActiondConfigvoidsetEventReader(org.opennms.netmgt.actiond.BroadcastEventProcessor eventReader)setEventReadervoidsetExecutor(org.opennms.netmgt.actiond.Executor executor)setExecutor-
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
-
-
-
-
Method Detail
-
onInit
protected void onInit()
onInit
- Specified by:
onInitin classAbstractServiceDaemon
-
onStart
protected void onStart()
onStart
- Overrides:
onStartin classAbstractServiceDaemon
-
onStop
protected void onStop()
onStop
- Overrides:
onStopin classAbstractServiceDaemon
-
onPause
protected void onPause()
onPause
- Overrides:
onPausein classAbstractServiceDaemon
-
onResume
protected void onResume()
onResume
- Overrides:
onResumein classAbstractServiceDaemon
-
getInstance
public static Actiond getInstance()
Returns the singular instance of the actiond daemon. There can be only one instance of this service per virtual machine.- Returns:
- a
Actiondobject.
-
getEventReader
public org.opennms.netmgt.actiond.BroadcastEventProcessor getEventReader()
getEventReader
- Returns:
- a
BroadcastEventProcessorobject.
-
setEventReader
public void setEventReader(org.opennms.netmgt.actiond.BroadcastEventProcessor eventReader)
setEventReader
- Parameters:
eventReader- aBroadcastEventProcessorobject.
-
getExecutor
public org.opennms.netmgt.actiond.Executor getExecutor()
getExecutor
- Returns:
- a
Executorobject.
-
setExecutor
public void setExecutor(org.opennms.netmgt.actiond.Executor executor)
setExecutor
- Parameters:
executor- aExecutorobject.
-
getActiondConfig
public ActiondConfigFactory getActiondConfig()
getActiondConfig
- Returns:
- a
ActiondConfigFactoryobject.
-
setActiondConfig
public void setActiondConfig(ActiondConfigFactory actiondConfig)
setActiondConfig
- Parameters:
actiondConfig- aActiondConfigFactoryobject.
-
-