org.opennms.netmgt.notifd
Class Notifd

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.opennms.netmgt.notifd.Notifd
All Implemented Interfaces:
Fiber, PausableFiber, SpringServiceDaemon, ServiceDaemon, org.springframework.beans.factory.InitializingBean

public final class Notifd
extends AbstractServiceDaemon

This class is used to represent the notification 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
 
Constructor Summary
protected Notifd()
          Constructs a new Notifd service daemon.
 
Method Summary
 BroadcastEventProcessor getBroadcastEventProcessor()
           
 NotifdConfigManager getConfigManager()
           
 DestinationPathManager getDestinationPathManager()
           
 EventIpcManager getEventManager()
           
 GroupManager getGroupManager()
           
static Notifd getInstance()
          Returns the singular instance of the Notifd daemon.
 NotificationCommandManager getNotificationCommandManager()
           
 NotificationManager getNotificationManager()
           
 PollOutagesConfigManager getPollOutagesConfigManager()
           
 UserManager getUserManager()
           
protected  void onInit()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void onStop()
           
 void setConfigManager(NotifdConfigManager manager)
           
 void setDestinationPathManager(DestinationPathManager manager)
           
 void setEventManager(EventIpcManager eventManager)
           
 void setGroupManager(GroupManager manager)
           
 void setNotificationCommandManager(NotificationCommandManager manager)
           
 void setNotificationManager(NotificationManager notificationManager)
           
 void setPollOutagesConfigManager(PollOutagesConfigManager configManager)
           
 void setUserManager(UserManager manager)
           
 
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
 

Constructor Detail

Notifd

protected Notifd()
Constructs a new Notifd service daemon.

Method Detail

onInit

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

getConfigManager

public NotifdConfigManager getConfigManager()
Returns:

setConfigManager

public void setConfigManager(NotifdConfigManager manager)

getGroupManager

public GroupManager getGroupManager()

setGroupManager

public void setGroupManager(GroupManager manager)

getUserManager

public UserManager getUserManager()

setUserManager

public void setUserManager(UserManager manager)

getDestinationPathManager

public DestinationPathManager getDestinationPathManager()

setDestinationPathManager

public void setDestinationPathManager(DestinationPathManager manager)

getNotificationCommandManager

public NotificationCommandManager getNotificationCommandManager()

setNotificationCommandManager

public void setNotificationCommandManager(NotificationCommandManager manager)

getNotificationManager

public NotificationManager getNotificationManager()

setNotificationManager

public void setNotificationManager(NotificationManager notificationManager)

getBroadcastEventProcessor

public BroadcastEventProcessor getBroadcastEventProcessor()

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 Notifd getInstance()
Returns the singular instance of the Notifd daemon. There can be only one instance of this service per virtual machine.


getEventManager

public EventIpcManager getEventManager()
Returns:

setEventManager

public void setEventManager(EventIpcManager eventManager)
Parameters:
eventManager - The eventManager to set.

setPollOutagesConfigManager

public void setPollOutagesConfigManager(PollOutagesConfigManager configManager)

getPollOutagesConfigManager

public PollOutagesConfigManager getPollOutagesConfigManager()


Copyright © 2009. All Rights Reserved.