mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
30.59.2015 891f8d0bd04e4a4018c354629cb960f0871de4a9
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Wednesday, September 30, 2015 16:59 +0200
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Thursday, October 1, 2015 19:01 +0200
commit891f8d0bd04e4a4018c354629cb960f0871de4a9
tree 44f6a261e658f2568a2da6c8342e479bed3f7f2a tree | zip | gz
parent be91c2f0888f24e076621640dda004ca8315a529 view | diff
OPENDJ-1910 Fix xxxrate tools stats

* com.forgerock.opendj.ldap.tools.PerformanceRunner
** We start to taking in account garbage collection time when the stats thread starts to run and not when the tool start.

** Refactor the run() method of StatThread to make the code more readable
*** Extract methods to compute stats, prints titles and stats.
*** Extract methods to do ensure that we never divide by zero
** Compute total stats (e.g duration, success, failures) from interval stats and
not from scratch to simplify code
*** Use java.concurrent.TimeUnit where possible

* Other changes are consequences of the previous ones
3 files modified
399 ■■■■ changed files
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/AuthRate.java 12 ●●●●● diff | view | raw | blame | history
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java 379 ●●●● diff | view | raw | blame | history
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/SearchRate.java 8 ●●●● diff | view | raw | blame | history