@Test public void testBug3146_replaceThreshold() throws Exception { ThresholdingVisitor visitor = createVisitor(); String lowThresholdUei = EventConstants.LOW_THRESHOLD_EVENT_UEI; String highExpression = "(((hrStorageAllocUnits*hrStorageUsed)/(hrStorageAllocUnits*hrStorageSize))*100)"; String lowExpression = "(100-((hrStorageAllocUnits*hrStorageUsed)/(hrStorageAllocUnits*hrStorageSize))*100)"; addHighThresholdEvent(1, 30, 25, 50, "/opt", "1", highExpression, null, null); addHighRearmEvent(1, 30, 25, Double.NaN, "/opt", "1", highExpression, null, null); addEvent(lowThresholdUei, "127.0.0.1", "SNMP", 1, 10.0, 20.0, 5.0, "/opt", "1", lowExpression, null, null, m_anticipator, m_anticipatedEvents); runFileSystemDataTest(visitor, 1, "/opt", 500, 1000); initFactories("/threshd-configuration.xml","/test-thresholds-4.xml"); visitor.reload(); runFileSystemDataTest(visitor, 1, "/opt", 950, 1000); verifyEvents(0); }
public void reload() { m_thresholdingSet.reinitialize(); }
ThresholdingVisitor extends AbstractCollectionSetVisitor { public void reload() { m_thresholdingSet.reinitialize(); } }
ThresholdingVisitor extends AbstractCollectionSetVisitor { public void reload() { m_thresholdingSet.reinitialize(); } protected  ThresholdingVisitor(CollectorThresholdingSet thresholdingSet); }
ThresholdingVisitor extends AbstractCollectionSetVisitor { public void reload() { m_thresholdingSet.reinitialize(); } 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 { public void reload() { m_thresholdingSet.reinitialize(); } 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();  }