Examples of shortSummary()


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

            }
            // do a list of the files
            store.directory().listAll();
        }
        stopWatch.stop();
        System.out.println("Warmup Took: " + stopWatch.shortSummary());

        for (int i = 0; i < readerThreads.length; i++) {
            readerThreads[i] = new Thread(new ReaderThread(), "Reader[" + i + "]");
        }
        for (int i = 0; i < writerThreads.length; i++) {
View Full Code Here

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

        barrier2.await();

        latch.await();
        stopWatch.stop();

        System.out.println("Took: " + stopWatch.shortSummary());

        for (int i = 0; i < 3; i++) {
            System.gc();
            MILLISECONDS.sleep(100);
        }
View Full Code Here

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

        assertThat(acquirableResource.resource().isReleased(), equalTo(false));
        acquirableResource.markForClose();
        assertThat(acquirableResource.resource().isReleased(), equalTo(true));

        stopWatch.stop();
        System.out.println("Took: " + stopWatch.shortSummary());
    }

    private static class Resource implements Releasable {

        private volatile boolean released = false;
View Full Code Here

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

        return invocation.proceed();
      }
      finally {
        sw.stop();

        System.out.println(sw.shortSummary());
      }
    }
  }

  /*
 
View Full Code Here

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

        return invocation.proceed();
      }
      finally {
        sw.stop();

        System.out.println(sw.shortSummary());
      }
    }


  }
View Full Code Here

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

            SecurityContextHolder.getContext().setAuthentication(new UsernamePasswordAuthenticationToken("bob", "bobspassword", createRoles(nAuthorities)));
            session.setAttribute(HttpSessionSecurityContextRepository.SPRING_SECURITY_CONTEXT_KEY, SecurityContextHolder.getContext());
            SecurityContextHolder.clearContext();
            sw.start(Integer.toString(nAuthorities) + " authorities");
            runWithStack(minimalStack);
            System.out.println(sw.shortSummary());
            sw.stop();
        }
        System.out.println(sw.prettyPrint());
    }
View Full Code Here

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

    try {
      return invocation.proceed();
    }
    finally {
      stopWatch.stop();
      logger.trace(stopWatch.shortSummary());
    }
  }

}
View Full Code Here

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

    try {
      return invocation.proceed();
    }
    finally {
      stopWatch.stop();
      logger.trace(stopWatch.shortSummary());
    }
  }

}
View Full Code Here

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

      // do nothing
      count++;
    }
    stopWatch.stop();
    reader.close();
    logger.info(stopWatch.shortSummary());
    return count;
  }

}
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.