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

Gaetan Boismal
15.58.2015 674c648130f4d986fd9156fac68afcd92af9a527
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Tuesday, December 15, 2015 11:58 +0100
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Monday, February 8, 2016 10:16 +0100
commit674c648130f4d986fd9156fac68afcd92af9a527
tree f49899693d17535d60d33d74148f8f43765b816b tree | zip | gz
parent 7133f6ea45f8f1b8867310cf1b4fe5f7ff27b72c view | diff
OPENDJ-2550 RateTool: Improve error output

If for some reasons, all rate tool threads fail with the same error, we will have the same error printed n times on console.
This is fixed by adding synchronization mechanism with stopTool() method.
To ensure that reported statistics remain consistent if tool is stopped by error, the statistic thread is now scheduled by a ScheduledExecutorService.
3 files modified
207 ■■■■ changed files
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/AddRate.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java 202 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties 3 ●●●● diff | view | raw | blame | history