public class QoSDrxAlarmEventReceiverEventHandlerImpl2 extends Object implements org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandler
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
QoSDrxAlarmEventReceiverEventHandlerImpl2() |
| Modifier and Type | Method and Description |
|---|---|
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(Object objectMessage,
org.openoss.ossj.fm.monitor.spring.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
|
public static int SPECIFY_OUTSTATION
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 )public static int USE_TYPE_INSTANCE
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 nodepublic QoSDrxAlarmEventReceiverEventHandlerImpl2()
public void setalarmUpdateBehaviour(String _alarmUpdateBehaviour)
_alarmUpdateBehaviour - must be
"USE_TYPE_INSTANCE"
or
"SPECIFY_OUTSTATION"public void setAssetRecordDao(AssetRecordDao ar)
ar - a AssetRecordDao object.public void setNodeDao(NodeDao nodedao)
nodedao - a NodeDao object.public void setAlarmDao(AlarmDao alarmDao)
alarmDao - a AlarmDao object.public void setDistPollerDao(DistPollerDao _distPollerDao)
_distPollerDao - a DistPollerDao object.public void setOssDao(OssDao _ossDao)
_ossDao - the ossDao to setpublic void setOnmsAlarmOssjMapper(OnmsAlarmOssjMapper onmsAlarmOssjMapper)
onmsAlarmOssjMapper - the onmsAlarmOssjMapper to setpublic void init()
init in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onNotifyNewAlarmEvent(javax.oss.fm.monitor.NotifyNewAlarmEvent nnae,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onNotifyNewAlarmEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onNotifyClearedAlarmEvent(javax.oss.fm.monitor.NotifyClearedAlarmEvent nclae,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onNotifyClearedAlarmEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onNotifyAckStateChangedEvent(javax.oss.fm.monitor.NotifyAckStateChangedEvent nasce,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onNotifyAckStateChangedEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onNotifyAlarmCommentsEvent(javax.oss.fm.monitor.NotifyAlarmCommentsEvent nace,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onNotifyAlarmCommentsEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onNotifyAlarmListRebuiltEvent(javax.oss.fm.monitor.NotifyAlarmListRebuiltEvent nalre,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onNotifyAlarmListRebuiltEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onNotifyChangedAlarmEvent(javax.oss.fm.monitor.NotifyChangedAlarmEvent nchae,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onNotifyChangedAlarmEvent in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onUnknownIRPEvt(javax.oss.util.IRPEvent irpevt,
org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onUnknownIRPEvt in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerpublic void onunknownObjectMessage(Object objectMessage, org.openoss.ossj.fm.monitor.spring.OssBeanAlarmEventReceiver callingAer)
onunknownObjectMessage in interface org.openoss.ossj.fm.monitor.spring.AlarmEventReceiverEventHandlerCopyright © 2015. All Rights Reserved.