Package org.rioproject.impl.watch

Examples of org.rioproject.impl.watch.GaugeWatch.addValue()


            }
            // Generate samples to reach the checkpoint
            while (added.size() < checkpoint) {
                double d = Math.random();
                added.add(d);
                watch.addValue(d);
            }
            //mon.waitFor(added.size());
            mon.waitFor(Math.min(collectionSize, checkpoint));

            // Verify that the data has been added correctly
View Full Code Here


            // Generate samples to reach the checkpoint
            while (added.size() < checkpoint) {
                long l = (long) (Math.random() * 1000);
                added.add(l);
                watch.addValue(l);
            }
            mon.waitFor(Math.min(collectionSize, checkpoint));

            // Verify that the data has been added correctly
            Calculable[] calcs = watch.getWatchDataSource().getCalculable();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.