From cd7ddcc30ed1b2cedf327e3c45185f815bf7ca29 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 02 Mar 2007 17:04:03 +0000
Subject: [PATCH] Allow the user to specify the JMX port using *j* option during the cli installation and using configure script. In the QuickSetup I added some code to *temporarily* select a port that is not being used for JMX.  Today we do not inform the user of the existence of this port so this approach does not make things much worse and reduces the changes of port conflicts in general.  Even in the case where we are not installing multiple instances of OpenDS the port 1689 might be in use by another process.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/UserInstallData.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/UserInstallData.java b/opends/src/quicksetup/org/opends/quicksetup/installer/UserInstallData.java
index e07d675..8057162 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/UserInstallData.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/UserInstallData.java
@@ -40,6 +40,8 @@
 
   private int serverPort;
 
+  private int serverJMXPort;
+
   private String directoryManagerDn;
 
   private String directoryManagerPwd;
@@ -85,6 +87,24 @@
   }
 
   /**
+   * Sets the server JMX port.
+   * @param serverJMXPort the new server JMX port.
+   */
+  public void setServerJMXPort(int serverJMXPort)
+  {
+    this.serverJMXPort = serverJMXPort;
+  }
+
+  /**
+   * Returns the server JMX port.
+   * @return the server JMX port.
+   */
+  public int getServerJMXPort()
+  {
+    return serverJMXPort;
+  }
+
+  /**
    * Returns the Directory Manager DN.
    * @return the Directory Manager DN.
    */

--
Gitblit v1.10.0