| | |
| | | private static void waitForOpsToComplete() |
| | | { |
| | | try { |
| | | WorkQueue workQueue = DirectoryServer.getWorkQueue(); |
| | | WorkQueue<?> workQueue = DirectoryServer.getWorkQueue(); |
| | | final long NO_TIMEOUT = -1; |
| | | workQueue.waitUntilIdle(NO_TIMEOUT); |
| | | } catch (Exception e) { |
| | |
| | | * Shut down the server, if it has been started. |
| | | * @param reason The reason for the shutdown. |
| | | */ |
| | | public static void shutdownServer(String reason) |
| | | { |
| | | shutdownServer(Message.raw(reason)); |
| | | } |
| | | |
| | | /** |
| | | * Shut down the server, if it has been started. |
| | | * @param reason The reason for the shutdown. |
| | | */ |
| | | public static void shutdownServer(Message reason) |
| | | { |
| | | if (SERVER_STARTED) |