Examples of taskInfo()


Examples of org.elasticsearch.common.StopWatch.taskInfo()

        assertThat(sw.taskCount(), equalTo(2));
        String pp = sw.prettyPrint();
        assertThat(pp.indexOf(name1) != -1, equalTo(true));
        assertThat(pp.indexOf(name2) != -1, equalTo(true));

        StopWatch.TaskInfo[] tasks = sw.taskInfo();
        assertThat(tasks.length, equalTo(2));
        assertThat(tasks[0].getTaskName(), equalTo(name1));
        assertThat(tasks[1].getTaskName(), equalTo(name2));
        sw.toString();
    }
View Full Code Here

Examples of org.elasticsearch.common.StopWatch.taskInfo()

        String pp = sw.prettyPrint();
        assertThat(pp.indexOf("kept"), not(equalTo(-1)));
        sw.toString();

        try {
            sw.taskInfo();
            assertThat(false, equalTo(true));
        } catch (UnsupportedOperationException ex) {
            // Ok
        }
    }
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.