Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In NetconfStreamThread, messages from the device are caught and notification messages are sent to all NetconfDeviceOutputEventListener listeners as part of a NetconfDeviceOutputEvent with type DEVICE_NOTIFICATION. NetconfAlarmProvider catches these events with InternalNotificationListener, which implements NetconfDeviceOutputEventListener. NetconfAlarmTranslator takes the deviceId of the device and the device message from the event and converts them to alarm(s), which are defined by Alarm.java. Then the AlarmManager updates the AlarmStore with these new alarms through updateAlarmList. Every time an alarm is createdadded to the alarm store, its information is printed to the log.

...