@Test public void testBug3554_withMockFilterDao() throws Exception { initFactories("/threshd-configuration-bug3554.xml","/test-thresholds-bug3554.xml"); ThresholdingVisitor visitor = createVisitor(); visitor.visitCollectionSet(createAnonymousCollectionSet(new Date().getTime())); runInterfaceResource(visitor, "127.0.0.1", "eth0", 10000000l, 1, 10000, 46000); runGaugeDataTest(visitor, 12000); CollectionAgent agent = createCollectionAgent(); GenericIndexResourceType resourceType = createGenericIndexResourceType(agent, "ciscoEnvMonTemperatureStatusIndex"); SnmpCollectionResource resource = new GenericIndexResource(resourceType, "ciscoEnvMonTemperatureStatusIndex", new SnmpInstId(45)); resource.visit(visitor); EasyMock.verify(agent); }
@Override public void visitCollectionSet(CollectionSet set) { m_collectionTimestamp = set.getCollectionTimestamp(); }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public void visitCollectionSet(CollectionSet set) { m_collectionTimestamp = set.getCollectionTimestamp(); } }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public void visitCollectionSet(CollectionSet set) { m_collectionTimestamp = set.getCollectionTimestamp(); } protected  ThresholdingVisitor(CollectorThresholdingSet thresholdingSet); }
ThresholdingVisitor extends AbstractCollectionSetVisitor { @Override public void visitCollectionSet(CollectionSet set) { m_collectionTimestamp = set.getCollectionTimestamp(); } 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 void visitCollectionSet(CollectionSet set) { m_collectionTimestamp = set.getCollectionTimestamp(); } 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();  }