@Test public void testNodeLabelChanged() { MockNode element = m_network.getNode(1); String newLabel = "NEW LABEL"; Event event = element.createNodeLabelChangedEvent(newLabel); m_pollerConfig.setNodeOutageProcessingEnabled(false); PollAnticipator poll = new PollAnticipator(); element.addAnticipator(poll); poll.anticipateAllServices(element); startDaemons(); poll.waitForAnticipated(1000L); assertEquals("Router", m_poller.getNetwork().getNode(1).getNodeLabel()); element.setLabel(newLabel); m_eventMgr.sendEventToListeners(event); assertEquals(newLabel, m_poller.getNetwork().getNode(1).getNodeLabel()); }
public PollableNetwork getNetwork() { return m_network; }
Poller extends AbstractServiceDaemon { public PollableNetwork getNetwork() { return m_network; } }
Poller extends AbstractServiceDaemon { public PollableNetwork getNetwork() { return m_network; } Poller(); }
Poller extends AbstractServiceDaemon { public PollableNetwork getNetwork() { return m_network; } Poller(); void setDataSource(DataSource dataSource); EventIpcManager getEventManager(); void setEventManager(EventIpcManager eventMgr); PollerEventProcessor getEventProcessor(); void setEventProcessor(PollerEventProcessor eventProcessor); PollableNetwork getNetwork(); void setNetwork(PollableNetwork network); void setQueryManager(QueryManager queryManager); QueryManager getQueryManager(); PollerConfig getPollerConfig(); void setPollerConfig(PollerConfig pollerConfig); PollOutagesConfig getPollOutagesConfig(); void setPollOutagesConfig(PollOutagesConfig pollOutagesConfig); Scheduler getScheduler(); void setScheduler(LegacyScheduler scheduler); void closeOutagesForNode(Date closeDate, int eventId, int nodeId); void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr); void closeOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName); static Poller getInstance(); ServiceMonitor getServiceMonitor(String svcName); void scheduleService(final int nodeId, final String nodeLabel, final String ipAddr, final String svcName); boolean packageIncludesIfAndSvc(Package pkg, String ipAddr, String svcName); void refreshServicePackages(); void refreshServiceThresholds(); }
Poller extends AbstractServiceDaemon { public PollableNetwork getNetwork() { return m_network; } Poller(); void setDataSource(DataSource dataSource); EventIpcManager getEventManager(); void setEventManager(EventIpcManager eventMgr); PollerEventProcessor getEventProcessor(); void setEventProcessor(PollerEventProcessor eventProcessor); PollableNetwork getNetwork(); void setNetwork(PollableNetwork network); void setQueryManager(QueryManager queryManager); QueryManager getQueryManager(); PollerConfig getPollerConfig(); void setPollerConfig(PollerConfig pollerConfig); PollOutagesConfig getPollOutagesConfig(); void setPollOutagesConfig(PollOutagesConfig pollOutagesConfig); Scheduler getScheduler(); void setScheduler(LegacyScheduler scheduler); void closeOutagesForNode(Date closeDate, int eventId, int nodeId); void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr); void closeOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName); static Poller getInstance(); ServiceMonitor getServiceMonitor(String svcName); void scheduleService(final int nodeId, final String nodeLabel, final String ipAddr, final String svcName); boolean packageIncludesIfAndSvc(Package pkg, String ipAddr, String svcName); void refreshServicePackages(); void refreshServiceThresholds();  }