/** * This method is responsible for handling nodeDeleted events. * * @param event * The event to process. * @throws InsufficientInformationException */ private void handleNodeDeleted(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); Long nodeId = event.getNodeid(); unscheduleNodeAndMarkForDeletion(nodeId); LOG.debug("nodeDeletedHandler: processing of nodeDeleted event for nodeid {} completed.", nodeId); }
/** * Handle a Node Deleted Event * * @param event */ @EventHandler(uei=EventConstants.NODE_DELETED_EVENT_UEI) public void handleNodeDeleted(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); m_linkd.deleteNode(event.getNodeid().intValue()); }
/** * 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()); }
/** * This method is responsible for handling nodeDeleted events. * * @param event * The event to process. * @throws InsufficientInformationException */ private void handleNodeCategoryMembershipChanged(Event event) throws InsufficientInformationException { EventUtils.checkNodeId(event); Long nodeId = event.getNodeid(); unscheduleNodeAndMarkForDeletion(nodeId); LOG.debug("nodeCategoryMembershipChanged: unscheduling nodeid {} completed.", nodeId); m_filterDao.flushActiveIpAddressListCache(); scheduleNode(nodeId.intValue(), true); }
/** * 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.checkNodeId(event); EventUtils.checkInterface(event);
EventUtils.checkNodeId(event); EventUtils.checkInterface(event);
EventUtils.checkNodeId(event); EventUtils.checkInterface(event);
EventUtils.checkNodeId(event); EventUtils.checkInterface(event); EventUtils.checkService(event);