public synchronized void onAlarmCreatedOrUpdatedWithReducedEvent(OnmsAlarm alarm) { if (m_hasActiveAlarmNbis) { final NorthboundAlarm a = new NorthboundAlarm(alarm); for (Northbounder nbi : m_northboundInterfaces) { nbi.onAlarm(a); } } }
if (daemonName.contains(nbi.getName())) { LOG.debug("Handling reload event for NBI: {}", nbi.getName()); LOG.debug("Reloading NBI configuration for interface {} not yet implemented.", nbi.getName()); EventBuilder ebldr = null; try { nbi.reloadConfig(); ebldr = new EventBuilder(EventConstants.RELOAD_DAEMON_CONFIG_SUCCESSFUL_UEI, Alarmd.NAME); ebldr.addParam(EventConstants.PARM_DAEMON_NAME, Alarmd.NAME); } catch (NorthbounderException ex) { LOG.error("Can't reload the northbound configuration for " + nbi.getName(), ex); ebldr = new EventBuilder(EventConstants.RELOAD_DAEMON_CONFIG_FAILED_UEI, Alarmd.NAME); ebldr.addParam(EventConstants.PARM_DAEMON_NAME, Alarmd.NAME);
if (daemonName.contains(nbi.getName())) { LOG.debug("Handling reload event for NBI: {}", nbi.getName()); LOG.debug("Reloading NBI configuration for interface {} not yet implemented.", nbi.getName()); EventBuilder ebldr = null; try { nbi.reloadConfig(); ebldr = new EventBuilder(EventConstants.RELOAD_DAEMON_CONFIG_SUCCESSFUL_UEI, Alarmd.NAME); ebldr.addParam(EventConstants.PARM_DAEMON_NAME, Alarmd.NAME); } catch (NorthbounderException ex) { LOG.error("Can't reload the northbound configuration for " + nbi.getName(), ex); ebldr = new EventBuilder(EventConstants.RELOAD_DAEMON_CONFIG_FAILED_UEI, Alarmd.NAME); ebldr.addParam(EventConstants.PARM_DAEMON_NAME, Alarmd.NAME);
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); } }