@Test public void testBug3720() throws Exception { runTestForBug3554(); HashSet<String> filters = new HashSet<String>(); for (org.opennms.netmgt.config.threshd.Package pkg : ThreshdConfigFactory.getInstance().getConfiguration().getPackage()) { filters.add(pkg.getFilter().getContent()); } int expectedCalls = filters.size(); LoggingEvent[] events = MockLogAppender.getEventsGreaterOrEqual(Level.DEBUG); int count = 0; String expectedMsgHeader = "createPackageIpMap: package "; for (LoggingEvent e : events) { if (e.getMessage().toString().startsWith(expectedMsgHeader)) count++; } assertEquals("expecting " + expectedCalls + " events", expectedCalls, count); }
@Override public String toString() { return "ThresholdingVisitor for " + m_thresholdingSet; }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public String toString() { return "ThresholdingVisitor for " + m_thresholdingSet; } }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public String toString() { return "ThresholdingVisitor for " + m_thresholdingSet; } protected  ThresholdingVisitor(CollectorThresholdingSet thresholdingSet); }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public String toString() { return "ThresholdingVisitor for " + m_thresholdingSet; } protected  ThresholdingVisitor(CollectorThresholdingSet thresholdingSet); static ThresholdingVisitor create(int nodeId, String hostAddress, String serviceName, RrdRepository repo, ServiceParameters svcParams); boolean hasThresholds(); @Override void visitCollectionSet(CollectionSet set); void reload(); void reloadScheduledOutages(); boolean isNodeInOutage(); @Override void visitResource(CollectionResource resource); @Override void visitAttribute(CollectionAttribute attribute); @Override void completeResource(CollectionResource resource); Date getCollectionTimestamp(); @Override String toString(); }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public String toString() { return "ThresholdingVisitor for " + m_thresholdingSet; } protected  ThresholdingVisitor(CollectorThresholdingSet thresholdingSet); static ThresholdingVisitor create(int nodeId, String hostAddress, String serviceName, RrdRepository repo, ServiceParameters svcParams); boolean hasThresholds(); @Override void visitCollectionSet(CollectionSet set); void reload(); void reloadScheduledOutages(); boolean isNodeInOutage(); @Override void visitResource(CollectionResource resource); @Override void visitAttribute(CollectionAttribute attribute); @Override void completeResource(CollectionResource resource); Date getCollectionTimestamp(); @Override String toString();  }