Package org.springframework.util

Examples of org.springframework.util.StopWatch.stop()


      stopWatch.start(beanName);
      String order = null;
      for (int i = 0; i < nrOfCalls; i++) {
        //order = orderService.startWorkflow();
      }
      stopWatch.stop();
      if (order != null) {
        log.debug("Return Value:"+order);
      }
      else {
        System.out.println("Order with ID " + orderId + " not found");
View Full Code Here


                    StopWatch stopWatch = new StopWatch("oneTimeSetUp");
                    stopWatch.start(Thread.currentThread().getName() + " creating set up nodes");
                    int pagesCreated = TestHelper.createSubPages(session.getNode(SITECONTENT_ROOT_NODE), 3, NB_CHILDREN);
                    logger.info("Created " + pagesCreated + " page hierarchy.");
                    session.save();
                    stopWatch.stop();
                    logger.error(stopWatch.prettyPrint());
                    return null;
                }
            });
            Assert.assertNotNull(site);
View Full Code Here

                Node node = currentNode.addNode("testnodeUnstructured", "nt:unstructured");
                for (int i = 0; i < CHILD_COUNT; i++) {
                    node.addNode("node" + i, "nt:unstructured");
                }
                session.save();
                stopWatch.stop();
                logger.error(stopWatch.prettyPrint());
                return null;
            }
        });
    }
View Full Code Here

                Node node = currentNode.addNode("testPageNode", "jnt:page");
                for (int i = 0; i < CHILD_COUNT; i++) {
                    node.addNode("child" + Integer.toString(i), "jnt:page");
                }
                session.save();
                stopWatch.stop();
                logger.error(stopWatch.prettyPrint());
                return null;
            }
        });
    }
View Full Code Here

            service.submit(new Reader(), Boolean.TRUE);
        }
        for (int i = 0; i < 1000; i++) {
            Boolean aBoolean = service.take().get();
        }
        stopWatch.stop();
        logger.error(stopWatch.prettyPrint());
        executor.shutdown();
    }

    @Test
View Full Code Here

            }
        }
        for (int i = 0; i < 1000; i++) {
            Boolean aBoolean = service.take().get();
        }
        stopWatch.stop();
        logger.error(stopWatch.prettyPrint());
        executor.shutdown();
    }

    @Test
View Full Code Here

            }
        }
        for (int i = 0; i < 1000; i++) {
            Boolean aBoolean = service.take().get();
        }
        stopWatch.stop();
        logger.error(stopWatch.prettyPrint());
        executor.shutdown();
    }

    @Test
View Full Code Here

        StopWatch stopWatch = new StopWatch();
        stopWatch.start("Create " + TAGS_TO_CREATE + " without logs");
        for (int i = 0; i < TAGS_TO_CREATE; i++) {
            service.createTag(generateTagName(), TESTSITE_NAME);
        }
        stopWatch.stop();
        final long withoutLogs = stopWatch.getLastTaskTimeMillis();
       
        deleteAllTags();
       
        for (int i = 0; i < 3; i++) {
View Full Code Here

        metricsLogger.setLevel(Level.TRACE);
        stopWatch.start("Create " + TAGS_TO_CREATE + " with logs");
        for (int i = 0; i < TAGS_TO_CREATE; i++) {
            service.createTag(generateTagName(), TESTSITE_NAME);
        }
        stopWatch.stop();
        final long withLogs = stopWatch.getLastTaskTimeMillis();
       
        logger.info(stopWatch.prettyPrint());
       
        if (withLogs > withoutLogs) {
View Full Code Here

            }
        }
        for (int i = 0; i < 1000; i++) {
            Boolean aBoolean = service.take().get();
        }
        stopWatch.stop();
        logger.error(stopWatch.prettyPrint());
        executor.shutdown();
    }

    @Test
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.