org.openoss.opennms.spring.qosdrx
Class QoSDrxAlarmEventReceiverEventHandlerImpl2

java.lang.Object
  extended by org.openoss.opennms.spring.qosdrx.QoSDrxAlarmEventReceiverEventHandlerImpl2
All Implemented Interfaces:
org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

public class QoSDrxAlarmEventReceiverEventHandlerImpl2
extends java.lang.Object
implements org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

Work in progress - implementing business methods


Field Summary
static int SPECIFY_OUTSTATION
          if alarmUpdateBehaviour is set to SPECIFY_OUTSTATION the receiver name will be used as the node name which will be updated with alarms from this receiver.
static int USE_TYPE_INSTANCE
          if alarmUpdateBehaviour is set to USE_TYPE_INSTANCE the alarm will be created with the node name corrsponding to a concatenation of the ManagedObjectID and ManagedObjectType.
 
Constructor Summary
QoSDrxAlarmEventReceiverEventHandlerImpl2()
           
 
Method Summary
 void init()
          Used by receiver to initialise this class Must be called before any other methods to ensure that ossDao is initialised
 void onNotifyAckStateChangedEvent(javax.oss.fm.monitor.NotifyAckStateChangedEvent nasce, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onNotifyAlarmCommentsEvent(javax.oss.fm.monitor.NotifyAlarmCommentsEvent nace, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onNotifyAlarmListRebuiltEvent(javax.oss.fm.monitor.NotifyAlarmListRebuiltEvent nalre, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onNotifyChangedAlarmEvent(javax.oss.fm.monitor.NotifyChangedAlarmEvent nchae, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onNotifyClearedAlarmEvent(javax.oss.fm.monitor.NotifyClearedAlarmEvent nclae, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onNotifyNewAlarmEvent(javax.oss.fm.monitor.NotifyNewAlarmEvent nnae, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onUnknownIRPEvt(javax.oss.util.IRPEvent irpevt, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void onunknownObjectMessage(java.lang.Object objectMessage, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
           
 void setalarmDao(org.opennms.netmgt.dao.AlarmDao alarmDao)
          Used by Spring Application context to pass in alarmDao
 void setalarmUpdateBehaviour(java.lang.String _alarmUpdateBehaviour)
          Used by Spring Application context to pass in alarmUpdateBehaviour as a string
 void setassetRecordDao(org.opennms.netmgt.dao.AssetRecordDao ar)
          Used by Spring Application context to pass in AssetRecordDao
 void setdistPollerDao(org.opennms.netmgt.dao.DistPollerDao _distPollerDao)
          Used by Spring Application context to pass in distPollerDao;
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPECIFY_OUTSTATION

public static int SPECIFY_OUTSTATION
if alarmUpdateBehaviour is set to SPECIFY_OUTSTATION the receiver name will be used as the node name which will be updated with alarms from this receiver. Usually this is set to the name of the node associated with the outstation but it can be set to a node which is a catch all for received alarms ( i.e. the local host perhaps )


USE_TYPE_INSTANCE

public static int USE_TYPE_INSTANCE
if alarmUpdateBehaviour is set to USE_TYPE_INSTANCE the alarm will be created with the node name corrsponding to a concatenation of the ManagedObjectID and ManagedObjectType. If these cannot be found then the alarm will default to the outstation node

Constructor Detail

QoSDrxAlarmEventReceiverEventHandlerImpl2

public QoSDrxAlarmEventReceiverEventHandlerImpl2()
Method Detail

setalarmUpdateBehaviour

public void setalarmUpdateBehaviour(java.lang.String _alarmUpdateBehaviour)
Used by Spring Application context to pass in alarmUpdateBehaviour as a string

Parameters:
alarmUpdateBehaviour - must be "USE_TYPE_INSTANCE" or "SPECIFY_OUTSTATION"

setassetRecordDao

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

Parameters:
ar -

setnodeDao

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

Parameters:
nodedao -

setalarmDao

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

Parameters:
alarmDao -

setdistPollerDao

public void setdistPollerDao(org.opennms.netmgt.dao.DistPollerDao _distPollerDao)
Used by Spring Application context to pass in distPollerDao;


setossDao

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

Parameters:
ossDao - the ossDao to set

setOnmsAlarmOssjMapper

public 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

init

public void init()
Used by receiver to initialise this class Must be called before any other methods to ensure that ossDao is initialised

Specified by:
init in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onNotifyNewAlarmEvent

public void onNotifyNewAlarmEvent(javax.oss.fm.monitor.NotifyNewAlarmEvent nnae,
                                  org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onNotifyNewAlarmEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onNotifyClearedAlarmEvent

public void onNotifyClearedAlarmEvent(javax.oss.fm.monitor.NotifyClearedAlarmEvent nclae,
                                      org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onNotifyClearedAlarmEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onNotifyAckStateChangedEvent

public void onNotifyAckStateChangedEvent(javax.oss.fm.monitor.NotifyAckStateChangedEvent nasce,
                                         org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onNotifyAckStateChangedEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onNotifyAlarmCommentsEvent

public void onNotifyAlarmCommentsEvent(javax.oss.fm.monitor.NotifyAlarmCommentsEvent nace,
                                       org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onNotifyAlarmCommentsEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onNotifyAlarmListRebuiltEvent

public void onNotifyAlarmListRebuiltEvent(javax.oss.fm.monitor.NotifyAlarmListRebuiltEvent nalre,
                                          org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onNotifyAlarmListRebuiltEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onNotifyChangedAlarmEvent

public void onNotifyChangedAlarmEvent(javax.oss.fm.monitor.NotifyChangedAlarmEvent nchae,
                                      org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onNotifyChangedAlarmEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onUnknownIRPEvt

public void onUnknownIRPEvt(javax.oss.util.IRPEvent irpevt,
                            org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onUnknownIRPEvt in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler

onunknownObjectMessage

public void onunknownObjectMessage(java.lang.Object objectMessage,
                                   org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
Specified by:
onunknownObjectMessage in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler


Copyright ? 2006-2008. All Rights Reserved.