From 3f35136ba1f7280fa233f2750d0e8929f7d504c5 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 26 Jun 2007 06:50:50 +0000
Subject: [PATCH] This change introduce a new configuration attribute that allow to configure the behavior of the server when replication has been configured but the replication have not been able to connect to any of the configured replication server.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
index 5922642..d1c3050 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
@@ -32,6 +32,7 @@
 import org.opends.server.admin.PropertyProvider;
 import org.opends.server.admin.server.ConfigurationChangeListener;
 import org.opends.server.admin.std.client.MultimasterDomainCfgClient;
+import org.opends.server.admin.std.meta.MultimasterDomainCfgDefn.IsolationPolicy;
 import org.opends.server.admin.std.server.MultimasterDomainCfg;
 import org.opends.server.types.DN;
 
@@ -45,6 +46,7 @@
   private int serverId;
   private SortedSet<String> replicationServers;
   private long heartbeatInterval = 1000;
+  private IsolationPolicy policy = IsolationPolicy.REJECT_ALL_UPDATES;
 
   /**
    * Creates a new Domain with the provided information
@@ -180,4 +182,21 @@
     heartbeatInterval = interval;
   }
 
+  /**
+   * Get the isolation policy.
+   */
+  public IsolationPolicy getIsolationPolicy()
+  {
+    return policy;
+  }
+
+  /**
+   * Set the isolation policy.
+   *
+   * @param policy the policy that must now be used.
+   */
+  public void setIsolationPolicy(IsolationPolicy policy)
+  {
+    this.policy = policy;
+  }
 }

--
Gitblit v1.10.0