Class Bsmd

    • Constructor Detail

      • Bsmd

        public Bsmd()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • handleAlarmSnapshot

        public void handleAlarmSnapshot​(java.util.List<OnmsAlarm> alarms)
        Description copied from interface: AlarmLifecycleListener
        Called periodically with a complete set of alarms as present in the database at the given timestamp. This should be used to synchronize any state to ensure it matches what is currently in the database. Note that it is possible that the *current* state of alarms is different from the state at the time at which the snapshot was taken. Implementations should take this in consideration when performing any state synchronization. This method will be called while the related session & transaction that created the alarm are still open. All of the listeners are invoked serially, so the implementors should avoid blocking when possible.
        Specified by:
        handleAlarmSnapshot in interface AlarmLifecycleListener
        Parameters:
        alarms - canonical set of alarms in the database
      • handleNewOrUpdatedAlarm

        public void handleNewOrUpdatedAlarm​(OnmsAlarm alarm)
        Description copied from interface: AlarmLifecycleListener
        Called when an alarm has been created or updated. This method will be called while the related session & transaction that created the alarm are still open. All of the listeners are invoked serially, so the implementors should avoid blocking when possible.
        Specified by:
        handleNewOrUpdatedAlarm in interface AlarmLifecycleListener
        Parameters:
        alarm - a newly created or updated alarm
      • handleDeletedAlarm

        public void handleDeletedAlarm​(int alarmId,
                                       java.lang.String reductionKey)
        Description copied from interface: AlarmLifecycleListener
        Called when an alarm has been deleted. This method will be called while the related session & transaction that created the alarm are still open. All of the listeners are invoked serially, so the implementors should avoid blocking when possible.
        Specified by:
        handleDeletedAlarm in interface AlarmLifecycleListener
        Parameters:
        alarmId - id of the alarm that was deleted
        reductionKey - reduction key of the alarm that was deleted
      • serviceInterfaceOrNodeDeleted

        public void serviceInterfaceOrNodeDeleted​(IEvent e)
      • handleReloadEvent

        public void handleReloadEvent​(IEvent e)
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • setEventIpcManager

        public void setEventIpcManager​(EventIpcManager eventIpcManager)
      • setEventConfDao

        public void setEventConfDao​(EventConfDao eventConfDao)
      • setTransactionTemplate

        public void setTransactionTemplate​(org.springframework.transaction.support.TransactionTemplate template)
      • getTransactionTemplate

        public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
      • setVerifyReductionKeys

        public void setVerifyReductionKeys​(boolean verify)
      • getVerifyReductionKeys

        public boolean getVerifyReductionKeys()