OpenNMS API 1.1.3

org.opennms.netmgt.notifd
Class Notifd

java.lang.Object
  extended byorg.opennms.netmgt.notifd.Notifd
All Implemented Interfaces:
Fiber, PausableFiber

public final class Notifd
extends java.lang.Object
implements PausableFiber

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
private static java.lang.String LOG4J_CATEGORY
          Logging categoyr for log4j
private  BroadcastEventProcessor m_eventReader
          The broadcast event receiver.
private  java.util.Map m_noticeQueues
          The map for holding different notice queues
private  java.util.Map m_queueHandlers
           
private static Notifd m_singleton
          The signlton instance.
private  int m_status
          The current status of this fiber
 
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
private Notifd()
          Constructs a new Notifd service daemon.
 
Method Summary
static Notifd getInstance()
          Returns the singular instance of the Notifd daemon.
 java.lang.String getName()
          Returns the name of the service.
 int getStatus()
          Returns the current status of the service.
 void init()
           
 void pause()
          Pauses the service if its currently running
 void resume()
          Resumes the service if its currently paused
 void start()
          Starts the Notifd service.
 void stop()
          Stops the currently running service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG4J_CATEGORY

private static java.lang.String LOG4J_CATEGORY
Logging categoyr for log4j


m_singleton

private static final Notifd m_singleton
The signlton instance.


m_noticeQueues

private java.util.Map m_noticeQueues
The map for holding different notice queues


m_queueHandlers

private java.util.Map m_queueHandlers

m_eventReader

private BroadcastEventProcessor m_eventReader
The broadcast event receiver.


m_status

private int m_status
The current status of this fiber

Constructor Detail

Notifd

private Notifd()
Constructs a new Notifd service daemon.

Method Detail

init

public void init()

start

public void start()
Starts the Notifd service. The process of starting the service involves starting the queue handlers and starting an event receiver.

Specified by:
start in interface Fiber

stop

public void stop()
Stops the currently running service. If the service is not running then the command is silently discarded.

Specified by:
stop in interface Fiber

getStatus

public int getStatus()
Returns the current status of the service.

Specified by:
getStatus in interface Fiber
Returns:
The service's status.

getName

public java.lang.String getName()
Returns the name of the service.

Specified by:
getName in interface Fiber
Returns:
The service's name.

pause

public void pause()
Pauses the service if its currently running

Specified by:
pause in interface PausableFiber

resume

public void resume()
Resumes the service if its currently paused

Specified by:
resume in interface PausableFiber

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.


OpenNMS API 1.1.3

Generated by root on August 18 2004 0350.