/** * Handle a Node Gained Service Event if service is SNMP * * @param event */ @EventHandler(uei=EventConstants.NODE_GAINED_SERVICE_EVENT_UEI) public void handleNodeGainedService(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); EventUtils.checkService(event); if (event.getService().equals("SNMP")) m_linkd.scheduleNodeCollection(event.getNodeid().intValue()); }
/** * Handle a Node Lost Service Event when service lost is SNMP * * @param event */ @EventHandler(uei=EventConstants.NODE_LOST_SERVICE_EVENT_UEI) public void handleNodeLostService(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); EventUtils.checkService(event); if (event.getService().equals("SNMP")) m_linkd.suspendNodeCollection(event.getNodeid().intValue()); }
/** * Handle a Node Regained Service Event where service is SNMP * * @param event */ @EventHandler(uei=EventConstants.NODE_REGAINED_SERVICE_EVENT_UEI) public void handleRegainedService(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); EventUtils.checkService(event); if (event.getService().equals("SNMP")) m_linkd.wakeUpNodeCollection(event.getNodeid().intValue()); }
/** * Process the event, construct a new CollectableService object * representing the node/interface combination, and schedule the interface * for collection. If any errors occur scheduling the interface no error * is returned. * * @param event * The event to process. * @throws InsufficientInformationException */ private void handleNodeGainedService(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); EventUtils.checkInterface(event); EventUtils.checkService(event); // Schedule the interface // scheduleForCollection(event); }
EventUtils.checkNodeId(event); EventUtils.checkInterface(event); EventUtils.checkService(event);