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

Gaetan Boismal
30.59.2015 87c1a62417b81fb9c7a40af815f391360defbc9a
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
commit87c1a62417b81fb9c7a40af815f391360defbc9a
tree bbf6c8b1de419224211927bf1ebe22b259184efb tree | zip | gz
parent d0273603973c82c9d9b7e25731654d15439cdaf0 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-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/AuthRate.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java 379 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/SearchRate.java 8 ●●●● diff | view | raw | blame | history