From f73b655466092169abac34833fb628fce1fcdebe Mon Sep 17 00:00:00 2001
From: jcduff <jcduff@localhost>
Date: Thu, 23 Oct 2008 14:04:24 +0000
Subject: [PATCH] The commit will bring the following features : - An updated version of the underlying database. BDB JE 3.3 is now used. - Attribute API refactoring providing a better abstraction and offering improved performances. - A new GUI called the Control-Panel to replace the Status-Panel: the specifications for this GUI are available on OpenDS Wiki and contains a link to a mockup. See <https://www.opends.org/wiki/page/ControlPanelUISpecification>. - Some changes in the replication protocol to implement "Assured Replication Mode". The specifications are on OpenDS Wiki at <https://www.opends.org/wiki/page/AssuredMode> and section 7 described some of the replication changes required to support this. Assured Replication is not finished, but the main replication protocol changes to support it are done. As explained by Gilles on an email on the Dev mailing list (http://markmail.org/message/46rgo3meq3vriy4a), with these changes the newer versions of OpenDS may not be able to replicate with OpenDS 1.0 instances. - Support for Service Tags on the platforms where the functionality is available and enabled. Specifications are published at <https://www.opends.org/wiki/page/OpenDSServiceTagEnabled>. For more information on Service Tags see <http://wikis.sun.com/display/ServiceTag/Sun+Service+Tag+FAQ>. - The Admin Connector service. In order to provide agentry of the OpenDS server at any time, a new service has been added, dedicated to the administration, configuration and monitoring of the server. An overview of the Admin Connector service and it's use is available on the OpenDS wiki <https://www.opends.org/wiki/page/ManagingAdministrationTrafficToTheServer> - Updates to the various command line tools to support the Admin Connector service. - Some internal re-architecting of the server to put the foundation of future developments such as virtual directory services. The new NetworkGroups and WorkFlow internal services which have been specified in <https://www.opends.org/wiki/page/BasicOperationRoutingThroughNetworkGroup> are now implemented. - Many bug fixes...
---
opends/src/quicksetup/org/opends/quicksetup/UserData.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/UserData.java b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
index 9948e3f..0fde0a8 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/UserData.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -55,6 +55,8 @@
private int serverPort;
+ private int adminConnectorPort;
+
private String directoryManagerDn;
private String directoryManagerPwd;
@@ -117,6 +119,13 @@
setServerPort(defaultPort);
}
+// See what we can propose as port
+ defaultPort = getDefaultAdminConnectorPort();
+ if (defaultPort != -1)
+ {
+ setAdminConnectorPort(defaultPort);
+ }
+
setHostName(getDefaultHostName());
setDirectoryManagerDn(Constants.DIRECTORY_MANAGER_DN);
@@ -195,6 +204,24 @@
}
/**
+ * Sets the admin connector port.
+ * @param adminConnectorPort the new admin connector port.
+ */
+ public void setAdminConnectorPort(int adminConnectorPort)
+ {
+ this.adminConnectorPort = adminConnectorPort;
+ }
+
+ /**
+ * Returns the admin connector port.
+ * @return the admin connector port.
+ */
+ public int getAdminConnectorPort()
+ {
+ return adminConnectorPort;
+ }
+
+ /**
* Sets the server JMX port.
* @param serverJMXPort the new server JMX port.
*/
@@ -560,6 +587,29 @@
}
/**
+ * Provides the administration port that will be proposed to the user in the
+ * second page of the installation wizard. It will check whether we can use
+ * ports of type X444 and if not it will return -1.
+ *
+ * @return the free port of type x444 if it is available and we can use and -1
+ * if not.
+ */
+ static public int getDefaultAdminConnectorPort()
+ {
+ int defaultPort = -1;
+
+ for (int i=0;i<10000 && (defaultPort == -1);i+=1000)
+ {
+ int port = i + 4444;
+ if (Utils.canUseAsPort(port))
+ {
+ defaultPort = port;
+ }
+ }
+ return defaultPort;
+ }
+
+ /**
* Provides the port that will be proposed to the user in the security dialog
* of the installation wizard. It will check whether we can use ports of type
* X636 and if not it will return -1.
--
Gitblit v1.10.0