Package com.jamonapi

Examples of com.jamonapi.Monitor.start()


    @Ignore("OAK-461")
    public void commitTime() throws Exception {
        boolean debug = false;
        Monitor commitMonitor = MonitorFactory.getTimeMonitor("commit");
        for (int i = 0; i < 1000; i++) {
            commitMonitor.start();
            String diff = "+\"a"+i+"\" : {} +\"b"+i+"\" : {} +\"c"+i+"\" : {}";
            if (debug) {
                System.out.println("Committing: " + diff);
            }
            mk.commit("/", diff, null, null);
View Full Code Here


    @Ignore("OAK-461")
    public void commitTime() throws Exception {
        boolean debug = false;
        Monitor commitMonitor = MonitorFactory.getTimeMonitor("commit");
        for (int i = 0; i < 1000; i++) {
            commitMonitor.start();
            String diff = "+\"a"+i+"\" : {} +\"b"+i+"\" : {} +\"c"+i+"\" : {}";
            if (debug) System.out.println("Committing: " + diff);
            mk.commit("/", diff, null, null);
            commitMonitor.stop();
            if (debug) System.out.println("Committed in " + commitMonitor.getLastValue() + "ms");
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.