From eb93a7bf09123d5fe7a8509e4a1421101163b670 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 14:43:45 +0000
Subject: [PATCH] The following commit adds all the code necessary to be able to configure replication using the setup.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/DataReplicationOptions.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/DataReplicationOptions.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/DataReplicationOptions.java
index 32d4596..8a78b43 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/DataReplicationOptions.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/DataReplicationOptions.java
@@ -57,6 +57,7 @@
   }
 
   private Type type;
+  private int replicationPort;
   private AuthenticationData authenticationData;
 
   /**
@@ -80,6 +81,7 @@
     {
     case IN_EXISTING_TOPOLOGY:
       authenticationData = (AuthenticationData)args[0];
+      replicationPort = (Integer)args[1];
       break;
 
     default:
@@ -87,6 +89,7 @@
       if ((args != null) && (args.length > 0))
       {
         authenticationData = (AuthenticationData)args[0];
+        replicationPort = (Integer)args[1];
       }
     }
   }
@@ -112,5 +115,15 @@
   {
     return authenticationData;
   }
+
+  /**
+   * Returns the port that is going to be used for replication.
+   *
+   * @return the replication that must be used to configure replication.
+   */
+  public int getReplicationPort()
+  {
+    return replicationPort;
+  }
 }
 

--
Gitblit v1.10.0