From 2973e1ec450dcfd99e193176ddbe25eafc652e17 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 05 Nov 2008 10:06:27 +0000
Subject: [PATCH] Fix for issue #3544 (upgrade fails during verification of replication)

---
 opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java b/opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java
index 312e090..69f7f20 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java
@@ -259,6 +259,31 @@
   }
 
   /**
+   * Disables the server's synchronization provider upon startup.  The server
+   * when started is otherwise up and running but will not accept any
+   * synchronization message. This could be useful, for example,
+   * in an upgrade mode where it might be helpful to start the server
+   * but don't want it to appear externally.
+   * @param disable boolean that when true disables synchronization provider
+   *  when the server is started.
+   */
+  static public void disableSynchronization(boolean disable) {
+    System.setProperty(
+            "org.opends.server.DisableSynchronization",
+            disable ? "true" : "false");
+  }
+  /**
+   * Disables the admin data synchronization upon startup.
+   * @param disable boolean that when true disables connection handlers when
+   * the server is started.
+   */
+  static public void disableAdminDataSynchronization(boolean disable) {
+    System.setProperty(
+            "org.opends.server.DisableAdminDataSynchronization",
+            disable ? "true" : "false");
+  }
+
+  /**
    * Stops a server that had been running 'in process'.
    */
   public void stopServer() {

--
Gitblit v1.10.0