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

Gaetan Boismal
01.22.2016 4a17c7f153f4912f376b5976eea7caa501187442
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Wednesday, June 1, 2016 14:22 +0200
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Thursday, June 2, 2016 12:15 +0200
commit4a17c7f153f4912f376b5976eea7caa501187442
tree f21c5799108ed8adf1e7b95ce238538a35cfceb8 tree | zip | gz
parent f18cfccb63b15a730dfa80599c3caa8ad1142376 view | diff
OPENDJ-3046 Cleanup server offline tools environment

When the various tools run in offline mode they initialise some parts of the directory server in order to perform their tasks.
Usually the tool will exit when it has finished processing and the state of this environment is not a problem.
However, if the tool is used within another process then some initialised components may be left over (e.g ads-trustore or admin data backends).
Extract a method from the DirectoryServer#shutdown() to shutdwon backends only and use it straight after TaskTool#processLocal.
5 files modified
336 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/core/DirectoryServer.java 96 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/ExportLDIF.java 6 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/ImportLDIF.java 6 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/RebuildIndex.java 6 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/tasks/TaskTool.java 222 ●●●● diff | view | raw | blame | history