/** * Creates a new SimpleTreeModelAggregator with a RootAggregator as * backing aggregator instance. * * @param aName The name of the root node. * @see RootAggregator */ public SimpleTreeModelAggregator(String aName) { this(aName, new RootAggregator()); }
protected Aggregator getDefaultAggregator() { return new BufferedThresholdAggregator(new RootAggregator()); }
protected Aggregator getDefaultAggregator() { return new BufferedThresholdAggregator(new RootAggregator()); }
protected Aggregator getDefaultAggregator() { return new RootAggregator(); } }
protected void setUp() throws Exception { super.setUp(); monitor = new FlatMonitor(EtmMonitorFactory.bestAvailableTimer(), new BufferedTimedAggregator(new RootAggregator())); monitor.start(); }
protected void setUp() throws Exception { super.setUp(); monitor = new FlatMonitor(EtmMonitorFactory.bestAvailableTimer(), new BufferedThresholdAggregator(new RootAggregator())); monitor.start(); }
/** * Tests the log aggregator filtering mechanism. If filtering works * the overall implementation works. */ public void testWithoutFilter() { EtmMonitor monitor = new FlatMonitor(); monitor.start(); TestLogAggregator aggregator = new TestLogAggregator(new RootAggregator()); aggregator.add(createCollectedPoint(monitor, "Action Foo")); aggregator.add(createCollectedPoint(monitor, "Action Bar")); aggregator.add(createCollectedPoint(monitor, "AnotherPoint")); aggregator.add(createCollectedPoint(monitor, "ClassName")); aggregator.add(createCollectedPoint(monitor, "Action Bar")); assertEquals(5, aggregator.points.size()); }
/** * Tests the log aggregator filtering mechanism. If filtering works * the overall implementation works. */ public void testFilter() { EtmMonitor monitor = new FlatMonitor(); monitor.start(); TestLogAggregator aggregator = new TestLogAggregator(new RootAggregator()); aggregator.setFilterPattern("Action.+;ClassName;"); aggregator.add(createCollectedPoint(monitor, "Action Foo")); aggregator.add(createCollectedPoint(monitor, "Action Bar")); aggregator.add(createCollectedPoint(monitor, "AnotherPoint")); aggregator.add(createCollectedPoint(monitor, "ClassName")); aggregator.add(createCollectedPoint(monitor, "Action Bar")); assertEquals(4, aggregator.points.size()); }
EtmMonitor monitor = new NestedMonitor(new NotifyingAggregator(new RootAggregator())); try { path.delete();