From bbdcd1d918a2f27fccb2e6a3fe4d854b901dffd8 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 06 Jul 2009 13:52:09 +0000
Subject: [PATCH] Fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server)

---
 opends/src/server/org/opends/server/tools/dsreplication/EnableReplicationUserData.java |   96 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 96 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/dsreplication/EnableReplicationUserData.java b/opends/src/server/org/opends/server/tools/dsreplication/EnableReplicationUserData.java
index 230013e..905d229 100644
--- a/opends/src/server/org/opends/server/tools/dsreplication/EnableReplicationUserData.java
+++ b/opends/src/server/org/opends/server/tools/dsreplication/EnableReplicationUserData.java
@@ -48,6 +48,10 @@
   private int replicationPort2;
   private boolean secureReplication2;
   private boolean replicateSchema = true;
+  private boolean configureReplicationServer1 = true;
+  private boolean configureReplicationServer2 = true;
+  private boolean configureReplicationDomain1 = true;
+  private boolean configureReplicationDomain2 = true;
 
   /**
    * Returns the host name of the first server.
@@ -300,4 +304,96 @@
   {
     this.secureReplication2 = secureReplication2;
   }
+
+  /**
+   * Returns whether the user asked to configure the replication server on the
+   * first server or not.
+   * @return whether the user asked to configure the replication server on the
+   * first server or not.
+   */
+  public boolean configureReplicationServer1()
+  {
+    return configureReplicationServer1;
+  }
+
+  /**
+   * Sets whether the replication server on the first server must be configured
+   * or not.
+   * @param configureReplicationServer1 whether the replication server on the
+   * first server must be configured or not.
+   */
+  public void setConfigureReplicationServer1(
+      boolean configureReplicationServer1)
+  {
+    this.configureReplicationServer1 = configureReplicationServer1;
+  }
+
+  /**
+   * Returns whether the user asked to configure the replication server on the
+   * second server or not.
+   * @return whether the user asked to configure the replication server on the
+   * second server or not.
+   */
+  public boolean configureReplicationServer2()
+  {
+    return configureReplicationServer2;
+  }
+
+  /**
+   * Sets whether the replication server on the second server must be configured
+   * or not.
+   * @param configureReplicationServer2 whether the replication server on the
+   * second server must be configured or not.
+   */
+  public void setConfigureReplicationServer2(
+      boolean configureReplicationServer2)
+  {
+    this.configureReplicationServer2 = configureReplicationServer2;
+  }
+
+  /**
+   * Returns whether the user asked to configure the replication domain on the
+   * first server or not.
+   * @return whether the user asked to configure the replication domain on the
+   * first server or not.
+   */
+  public boolean configureReplicationDomain1()
+  {
+    return configureReplicationDomain1;
+  }
+
+  /**
+   * Sets whether the replication domain on the first server must be configured
+   * or not.
+   * @param configureReplicationDomain1 whether the replication domain on the
+   * first server must be configured or not.
+   */
+  public void setConfigureReplicationDomain1(
+      boolean configureReplicationDomain1)
+  {
+    this.configureReplicationDomain1 = configureReplicationDomain1;
+  }
+
+  /**
+   * Returns whether the user asked to configure the replication domain on the
+   * second server or not.
+   * @return whether the user asked to configure the replication domain on the
+   * second server or not.
+   */
+  public boolean configureReplicationDomain2()
+  {
+    return configureReplicationDomain2;
+  }
+
+  /**
+   * Sets whether the replication domain on the second server must be configured
+   * or not.
+   * @param configureReplicationDomain2 whether the replication domain on the
+   * second server must be configured or not.
+   */
+  public void setConfigureReplicationDomain2(
+      boolean configureReplicationDomain2)
+  {
+    this.configureReplicationDomain2 = configureReplicationDomain2;
+  }
 }

--
Gitblit v1.10.0