public synchronized void onAlarmCreatedOrUpdatedWithReducedEvent(OnmsAlarm alarm) { if (m_hasActiveAlarmNbis) { final NorthboundAlarm a = new NorthboundAlarm(alarm); for (Northbounder nbi : m_northboundInterfaces) { nbi.onAlarm(a); } } }
public synchronized void onAlarmCreatedOrUpdatedWithReducedEvent(OnmsAlarm alarm) { if (m_hasActiveAlarmNbis) { final NorthboundAlarm a = new NorthboundAlarm(alarm); for (Northbounder nbi : m_northboundInterfaces) { nbi.onAlarm(a); } } }
/** * Forwards the alarms to the current set of NBIs. * * This method is synchronized since the event handler is multi-threaded * and the NBIs are not necessarily thread safe. * * @param alarm the alarm to forward */ private synchronized void forwardAlarmToNbis(OnmsAlarm alarm) { NorthboundAlarm a = new NorthboundAlarm(alarm); for (Northbounder nbi : m_northboundInterfaces) { nbi.onAlarm(a); } }
/** * Forwards the alarms to the current set of NBIs. * * This method is synchronized since the event handler is multi-threaded * and the NBIs are not necessarily thread safe. * * @param alarm the alarm to forward */ private synchronized void forwardAlarmToNbis(OnmsAlarm alarm) { NorthboundAlarm a = new NorthboundAlarm(alarm); for (Northbounder nbi : m_northboundInterfaces) { nbi.onAlarm(a); } }