org.openoss.opennms.spring.qosdrx
Class QoSDrxAlarmEventReceiverEventHandlerImpl2

java.lang.Object
  extended by org.openoss.opennms.spring.qosdrx.QoSDrxAlarmEventReceiverEventHandlerImpl2

public class QoSDrxAlarmEventReceiverEventHandlerImpl2
extends Object

Work in progress - implementing business methods

Version:
$Id: $
Author:
ranger

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(NotifyAckStateChangedEvent nasce, OssBeanAlarmEventReceiver callingAer)
          
 void onNotifyAlarmCommentsEvent(NotifyAlarmCommentsEvent nace, OssBeanAlarmEventReceiver callingAer)
          
 void onNotifyAlarmListRebuiltEvent(NotifyAlarmListRebuiltEvent nalre, OssBeanAlarmEventReceiver callingAer)
          
 void onNotifyChangedAlarmEvent(NotifyChangedAlarmEvent nchae, OssBeanAlarmEventReceiver callingAer)
          
 void onNotifyClearedAlarmEvent(NotifyClearedAlarmEvent nclae, OssBeanAlarmEventReceiver callingAer)
          
 void onNotifyNewAlarmEvent(NotifyNewAlarmEvent nnae, OssBeanAlarmEventReceiver callingAer)
          
 void onUnknownIRPEvt(IRPEvent irpevt, OssBeanAlarmEventReceiver callingAer)
          
 void onunknownObjectMessage(Object objectMessage, OssBeanAlarmEventReceiver callingAer)
          
 void setAlarmDao(AlarmDao alarmDao)
          Used by Spring Application context to pass in alarmDao
 void setalarmUpdateBehaviour(String _alarmUpdateBehaviour)
          Used by Spring Application context to pass in alarmUpdateBehaviour as a string
 void setAssetRecordDao(AssetRecordDao ar)
          Used by Spring Application context to pass in AssetRecordDao
 void setDistPollerDao(DistPollerDao _distPollerDao)
          Used by Spring Application context to pass in distPollerDao;
 void setNodeDao(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(OssDao _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(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(AssetRecordDao ar)
Used by Spring Application context to pass in AssetRecordDao

Parameters:
ar - a AssetRecordDao object.

setNodeDao

public void setNodeDao(NodeDao nodedao)
Used by Spring Application context to pass in NodeDaof

Parameters:
nodedao - a NodeDao object.

setAlarmDao

public void setAlarmDao(AlarmDao alarmDao)
Used by Spring Application context to pass in alarmDao

Parameters:
alarmDao - a AlarmDao object.

setDistPollerDao

public void setDistPollerDao(DistPollerDao _distPollerDao)
Used by Spring Application context to pass in distPollerDao;

Parameters:
_distPollerDao - a DistPollerDao object.

setOssDao

public void setOssDao(OssDao _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


onNotifyNewAlarmEvent

public void onNotifyNewAlarmEvent(NotifyNewAlarmEvent nnae,
                                  OssBeanAlarmEventReceiver callingAer)


onNotifyClearedAlarmEvent

public void onNotifyClearedAlarmEvent(NotifyClearedAlarmEvent nclae,
                                      OssBeanAlarmEventReceiver callingAer)


onNotifyAckStateChangedEvent

public void onNotifyAckStateChangedEvent(NotifyAckStateChangedEvent nasce,
                                         OssBeanAlarmEventReceiver callingAer)


onNotifyAlarmCommentsEvent

public void onNotifyAlarmCommentsEvent(NotifyAlarmCommentsEvent nace,
                                       OssBeanAlarmEventReceiver callingAer)


onNotifyAlarmListRebuiltEvent

public void onNotifyAlarmListRebuiltEvent(NotifyAlarmListRebuiltEvent nalre,
                                          OssBeanAlarmEventReceiver callingAer)


onNotifyChangedAlarmEvent

public void onNotifyChangedAlarmEvent(NotifyChangedAlarmEvent nchae,
                                      OssBeanAlarmEventReceiver callingAer)


onUnknownIRPEvt

public void onUnknownIRPEvt(IRPEvent irpevt,
                            OssBeanAlarmEventReceiver callingAer)


onunknownObjectMessage

public void onunknownObjectMessage(Object objectMessage,
                                   OssBeanAlarmEventReceiver callingAer)



Copyright © 2011. All Rights Reserved.