protected void setUp() throws Exception { monitor = new NestedMonitor(); monitor.start(); }
/** * * Configures {@link EtmManager} to use a {@link FlatMonitor} * or {@link NestedMonitor} depending on the given parameter * with the given ExecutionTimer and Aggregator chain.. * * @param nested True creates an NestedMonitor, false a FlatMonitor. * @param aggregator The aggregator chain to be used. * @param timer The ExecutionTimer to be used. */ public static void configure(boolean nested, ExecutionTimer timer, Aggregator aggregator) { if (nested) { EtmManager.configure(new NestedMonitor(timer, aggregator)); } else { EtmManager.configure(new FlatMonitor(timer, aggregator)); } }
/** * * Configures {@link EtmManager} to use a {@link FlatMonitor} * or {@link NestedMonitor} depending on the given parameter * with the given ExecutionTimer and Aggregator chain.. * * @param nested True creates an NestedMonitor, false a FlatMonitor. * @param aggregator The aggregator chain to be used. * @param timer The ExecutionTimer to be used. */ public static void configure(boolean nested, ExecutionTimer timer, Aggregator aggregator) { if (nested) { EtmManager.configure(new NestedMonitor(timer, aggregator)); } else { EtmManager.configure(new FlatMonitor(timer, aggregator)); } }
protected void setUp() throws Exception { super.setUp(); monitor = new NestedMonitor(); monitor.start(); }
protected void setUp() throws Exception { monitor = new NestedMonitor(EtmMonitorFactory.bestAvailableTimer()); monitor.start(); }
public void testMissingAggregator() { EtmMonitor monitor = new NestedMonitor(); Rrd4jPlugin plugin = new Rrd4jPlugin(); monitor.addPlugin(plugin); PrintStream writer = System.err; ByteArrayOutputStream out = new ByteArrayOutputStream(); PrintStream tmpErr = new PrintStream(out); System.setErr(tmpErr); try { monitor.start(); tmpErr.flush(); String s = new String(out.toByteArray(), Charset.defaultCharset()); assertTrue(s.indexOf("NotifyingAggregator") > -1); } finally { System.setErr(writer); monitor.stop(); } }
protected void setUp() throws Exception { monitor = new NestedMonitor(); httpConsoleServer = new HttpConsoleServer(monitor); httpConsoleServer.start(); monitor.start(); TestPointGenerator testPointGenerator = new TestPointGenerator(monitor, false); testPointGenerator.getEtmPoints(5, 2); // sleep shortly to let the console start Thread.sleep(100); }
protected void setUp() throws Exception { monitor = new NestedMonitor(); HttpConsoleServerPlugin etmPlugin = new HttpConsoleServerPlugin(); monitor.addPlugin(etmPlugin); monitor.start(); // sleep shortly to let the console start Thread.sleep(100); TestPointGenerator testPointGenerator = new TestPointGenerator(monitor, false); testPointGenerator.getEtmPoints(5, 2); }
EtmMonitor memoryMonitor = new NestedMonitor(memoryAggregator); memoryMonitor.start(); EtmMonitor persistentStateMonitor = new NestedMonitor(persistentStateAggregator); persistentStateMonitor.start();
EtmMonitor monitor = new NestedMonitor(new NotifyingAggregator(new RootAggregator())); try { path.delete();