org.opennms.netmgt.actiond
Class Actiond

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.opennms.netmgt.actiond.Actiond
All Implemented Interfaces:
Fiber, PausableFiber, SpringServiceDaemon, ServiceDaemon, 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.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
 
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
 
Method Summary
 ActiondConfigFactory getActiondConfig()
           
 org.opennms.netmgt.actiond.BroadcastEventProcessor getEventReader()
           
 org.opennms.netmgt.actiond.Executor getExecutor()
           
static Actiond getInstance()
          Returns the singular instance of the actiond daemon.
protected  void onInit()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void onStop()
           
 void setActiondConfig(ActiondConfigFactory actiondConfig)
           
 void setEventReader(org.opennms.netmgt.actiond.BroadcastEventProcessor eventReader)
           
 void setExecutor(org.opennms.netmgt.actiond.Executor executor)
           
 
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onInit

protected void onInit()
Specified by:
onInit in class AbstractServiceDaemon

onStart

protected void onStart()
Overrides:
onStart in class AbstractServiceDaemon

onStop

protected void onStop()
Overrides:
onStop in class AbstractServiceDaemon

onPause

protected void onPause()
Overrides:
onPause in class AbstractServiceDaemon

onResume

protected void onResume()
Overrides:
onResume in class AbstractServiceDaemon

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.


getEventReader

public org.opennms.netmgt.actiond.BroadcastEventProcessor getEventReader()

setEventReader

public void setEventReader(org.opennms.netmgt.actiond.BroadcastEventProcessor eventReader)

getExecutor

public org.opennms.netmgt.actiond.Executor getExecutor()

setExecutor

public void setExecutor(org.opennms.netmgt.actiond.Executor executor)

getActiondConfig

public ActiondConfigFactory getActiondConfig()

setActiondConfig

public void setActiondConfig(ActiondConfigFactory actiondConfig)


Copyright © 2009. All Rights Reserved.