org.openoss.opennms.spring.qosd
Interface QoSD

All Known Implementing Classes:
QoSDimpl2

public interface QoSD


Field Summary
static java.lang.String NAME
           
 
Method Summary
 java.lang.String getName()
          Returns the Log category name
 java.lang.String getStats()
          not used but needed for initialisation
 int getStatus()
          lets OpenNMS know what state the daemon is in
 void init()
          Method to set up the fiber Note - not used in Spring activation
 void onEvent(org.opennms.netmgt.xml.event.Event event)
          The OpenNMS event listener runs this routine when a new event is detected.
 void pause()
          Pause method of fiber, called by OpenNMS to put the fiber in a suspended state until it can be later resumed.
 void registerListener()
          Registers an OpenNMS event listener with this class.
 void resume()
          Resume method of fiber, called by OpenNMS to start the fiber up from a paused state.
 void sendAlarms()
          A method to request an alarm list from the OpenNMS database and send the "unacked" alarms to the remote AlarmMonitor bean
 void setalarmDao(org.opennms.netmgt.dao.AlarmDao alarmDao)
          Used by Spring Application context to pass in alarmDao
 void setalarmListConnectionManager(AlarmListConnectionManager alcm)
          Used by Spring Application context to pass in AlarmListConnectionManager
 void setapplicationcontext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
          Used by jmx mbean QoSD to pass in Spring Application context
 void setassetRecordDao(org.opennms.netmgt.dao.AssetRecordDao ar)
          Used by Spring Application context to pass in AssetRecordDao
 void seteventIpcManager(org.opennms.netmgt.eventd.EventIpcManager eventIpcManager)
          Used by Spring Application context to pass in EventIpcManager
 void setnodeDao(org.opennms.netmgt.dao.NodeDao nodedao)
          Used by Spring Application context to pass in NodeDaof
 void setOnmsAlarmOssjMapper(OnmsAlarmOssjMapper _onmsAlarmOssjMapper)
          Used by Spring Application context to pass in OnmsAlarmOssjMapper The OnmsAlarmOssjMapper class maps OpenNMS alarms to OSS/J alarms and events
 void setossDao(OssDaoOpenNMSImpl _ossDao)
          provides an interface to OpenNMS which provides a unified api
 void start()
          The start() method loads the configuration for the QosD daemon and registers for events
 void stop()
          Stop method of fiber, called by OpenNMS when fiber execution is to finish.
 void unregisterListener()
          Stops OpenNMS calling the onEvent method of this object when an event occurs.
 

Field Detail

NAME

static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

setossDao

void setossDao(OssDaoOpenNMSImpl _ossDao)
provides an interface to OpenNMS which provides a unified api

Parameters:
ossDao - the ossDao to set

setOnmsAlarmOssjMapper

void setOnmsAlarmOssjMapper(OnmsAlarmOssjMapper _onmsAlarmOssjMapper)
Used by Spring Application context to pass in OnmsAlarmOssjMapper The OnmsAlarmOssjMapper class maps OpenNMS alarms to OSS/J alarms and events

Parameters:
onmsAlarmOssjMapper - the onmsAlarmOssjMapper to set

setassetRecordDao

void setassetRecordDao(org.opennms.netmgt.dao.AssetRecordDao ar)
Used by Spring Application context to pass in AssetRecordDao

Parameters:
ar -

setnodeDao

void setnodeDao(org.opennms.netmgt.dao.NodeDao nodedao)
Used by Spring Application context to pass in NodeDaof

Parameters:
nodedao -

seteventIpcManager

void seteventIpcManager(org.opennms.netmgt.eventd.EventIpcManager eventIpcManager)
Used by Spring Application context to pass in EventIpcManager

Parameters:
eventIpcManager -

setalarmDao

void setalarmDao(org.opennms.netmgt.dao.AlarmDao alarmDao)
Used by Spring Application context to pass in alarmDao

Parameters:
alarmDao -

setalarmListConnectionManager

void setalarmListConnectionManager(AlarmListConnectionManager alcm)
Used by Spring Application context to pass in AlarmListConnectionManager

Parameters:
alcm -

setapplicationcontext

void setapplicationcontext(org.springframework.context.support.ClassPathXmlApplicationContext m_context)
Used by jmx mbean QoSD to pass in Spring Application context

Parameters:
m_context - - application context for this bean to use

init

void init()
Method to set up the fiber Note - not used in Spring activation


start

void start()
The start() method loads the configuration for the QosD daemon and registers for events


stop

void stop()
Stop method of fiber, called by OpenNMS when fiber execution is to finish. Its purpose is to clean everything up, e.g. close any JNDI or database connections, before the fiber's execution is ended.


resume

void resume()
Resume method of fiber, called by OpenNMS to start the fiber up from a paused state.


pause

void pause()
Pause method of fiber, called by OpenNMS to put the fiber in a suspended state until it can be later resumed.


getName

java.lang.String getName()
Returns the Log category name


getStatus

int getStatus()
lets OpenNMS know what state the daemon is in

Parameters:
status -

onEvent

void onEvent(org.opennms.netmgt.xml.event.Event event)
The OpenNMS event listener runs this routine when a new event is detected. This can be run on any event but only needs to run on uei.opennms.org/vacuumd/alarmListChanged


registerListener

void registerListener()
Registers an OpenNMS event listener with this class. When an event occurs, OpenNMS will call the onEvent() method of this object.


unregisterListener

void unregisterListener()
Stops OpenNMS calling the onEvent method of this object when an event occurs.


getStats

java.lang.String getStats()
not used but needed for initialisation

Returns:
stats

sendAlarms

void sendAlarms()
A method to request an alarm list from the OpenNMS database and send the "unacked" alarms to the remote AlarmMonitor bean



Copyright ? 2006-2008. All Rights Reserved.