From c8447177b6c9d155ea48009583a20ecce7ffd8c6 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 18 Jan 2010 22:27:40 +0000
Subject: [PATCH] Fix for issue 3901 (Setup fails when inserting a server in a replication topology with large umount of data) - Add a 'Runtime Options' step in the wizard.  By default this will contain just two labels and two buttons: Server Runtime Options: Use Default <button to change> Import Options: Use Default <button to change>

---
 opends/src/messages/messages/quicksetup.properties |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 100 insertions(+), 5 deletions(-)

diff --git a/opends/src/messages/messages/quicksetup.properties b/opends/src/messages/messages/quicksetup.properties
index 3fc032e..ccfcfc6 100644
--- a/opends/src/messages/messages/quicksetup.properties
+++ b/opends/src/messages/messages/quicksetup.properties
@@ -842,6 +842,7 @@
 INFO_REPLICATION_PORT_LABEL=Replication Port:
 INFO_REPLICATION_PORT_TOOLTIP=The port that will be used to send and receive \
  replication updates between this server and the other servers.
+INFO_RUNTIME_OPTIONS_LABEL=Runtime Options:
 INFO_RETRY_BUTTON_LABEL=Retry
 INFO_REVERSION_CANCELED=Reversion canceled.
 INFO_REVERSION_ORACLE_EI_ACTION=Reversion from version %s to version %s \
@@ -887,6 +888,10 @@
 INFO_REVIEW_STEP=Review
 INFO_REVIEW_DISPLAY_TEXT=Show Summary
 INFO_REVIEW_DISPLAY_EQUIVALENT_COMMAND=Show Equivalent Command-Line
+INFO_EDIT_JAVA_PROPERTIES_LINE=Before launching the command-lines described \
+ below, edit the file '%s' and add the following line:%n%s
+INFO_EDIT_JAVA_PROPERTIES_LINES=Before launching the command-lines described \
+ below, edit the file '%s' and add the following lines:%n%s
 INFO_INSTALL_SETUP_EQUIVALENT_COMMAND_LINE=Equivalent non-interactive \
  command-line to setup server:
 INFO_INSTALL_ENABLE_REPLICATION_EQUIVALENT_COMMAND_LINE=Equivalent \
@@ -966,7 +971,7 @@
 INFO_SHUTDOWN_DIRECTORY_MANAGER_CANCEL_BUTTON_TOOLTIP=Close this window
 INFO_SHUTDOWN_DIRECTORY_MANAGER_DIALOG_MSG=<b>Directory Server is \
  Running</b><br>The server is currently running and must be stopped before \
- uninstallation can continue.  Provide the information below to allow the \
+ uninstall can continue.  Provide the information below to allow the \
  uninstaller to shut it down. You can also click Cancel and then shut the \
  server down yourself.
 INFO_SHUTDOWN_DIRECTORY_MANAGER_DIALOG_TITLE=Authentication Required
@@ -1376,10 +1381,10 @@
  java.properties file and then run the dsjavaproperties script to specify the \
  java version to be used.
 SEVERE_ERR_INVALID_JAVA_ARGS=The java arguments used in the server \
- installation in '%s' do not seem to be compatible with the JVM used to run \
- the upgrader (%s).%n%nTo fix this problem delete the file %s and click on \
- 'Next' again.%nOnce the upgrader finishes you will have to set again the \
- java arguments by running the command-line %s.
+ installation in '%s' do not seem to be compatible with the Java virtual \
+ machine used to run the upgrader (%s).%n%nTo fix this problem delete the file \
+ %s and click on 'Next' again.%nOnce the upgrader finishes you will have to \
+ set again the java arguments by running the command-line %s.
 INFO_ADS_CONTEXT_EXCEPTION_MSG=Registration information error.  Error type: \
  '%s'.
 INFO_ADS_CONTEXT_EXCEPTION_WITH_DETAILS_MSG=Registration information error.  \
@@ -1390,3 +1395,93 @@
  server %s but not in server %s:%n%s%nThe merge can only be performed if these \
  administrators are defined in server %s.  Use the command-line dsframework \
  to do so.
+INFO_INITIAL_MEMORY_LABEL=Initial Memory:
+INFO_INITIAL_MEMORY_TOOLTIP=Provide the initial memory in megabytes that \
+ the Java process will use.
+INFO_MAX_MEMORY_LABEL=Maximum Memory:
+INFO_MAX_MEMORY_TOOLTIP=Provide the maximum memory in megabytes that the Java \
+ process will be allowed to use.
+INFO_OTHER_JAVA_ARGUMENTS_LABEL=Other Java Arguments:
+INFO_OTHER_JAVA_ARGUMENTS_TOOLTIP=Provide other java arguments that will be \
+ used by the Java process.
+INFO_MEGABYTE_LABEL=Megabytes
+INFO_JAVA_ARGUMENTS_OK_BUTTON_TOOLTIP=Close this dialog and accept the \
+ provided java arguments.
+INFO_JAVA_ARGUMENTS_CANCEL_BUTTON_TOOLTIP=Close this dialog and discard \
+ the provide java arguments.
+INFO_JAVA_ARGUMENTS_LEAVE_EMPTY=Leave empty to use the default value of the \
+ Java virtual machine.
+MILD_ERR_INITIAL_MEMORY_VALUE=The initial memory value must be a positive \
+ integer.
+MILD_ERR_MAX_MEMORY_VALUE=The maximum memory value must be a positive integer.
+MILD_ERR_MEMORY_VALUE_EXTENDED=Could not use the provided memory values.  \
+ Check that the running Java virtual machine supports to specify the %s and \
+ %s arguments and that there is enough memory in the machine to use the \
+ provided values.
+MILD_ERR_INITIAL_MEMORY_VALUE_EXTENDED=Could not use the provided initial \
+ memory value.  Check that the running Java virtual machine supports to \
+ specify the %s argument and that there is enough memory in the machine to use \
+ the provided value.
+MILD_ERR_MAX_MEMORY_VALUE_EXTENDED=Could not use the provided maximum memory \
+ value.  Check that the running Java virtual machine supports to specify the \
+ %s argument and that there is enough memory in the machine to use the \
+ provided value.
+MILD_ERR_MEMORY_32_BIT_LIMIT=Note that 32-bit Java virtual machines do not \
+ support memory values higher than 2 gigabytes.
+MILD_ERR_GENERIC_JAVA_ARGUMENT=Could not use the arguments '%s' using the \
+ running Java virtual machine.   Check that the Java virtual machine supports \
+ this argument.
+MILD_ERR_MAX_MEMORY_BIGGER_THAN_INITIAL_MEMORY=The maximum memory value must \
+ be higher than the initial memory value.
+MILD_ERR_MEMORY_AND_OTHER_ARGUMENTS_NOT_COMPATIBLE=The provided memory \
+ arguments and the 'Other Java Arguments' were checked successfully \
+ separately.  However there was an error running them simultaneously.  Check \
+ that the provided arguments are compatible with the memory values.
+INFO_JAVA_ARGUMENTS_CANNOT_BE_CHECKED_IN_WEBSTART=In the Java Webstart setup, \
+ the provided Java arguments are not thoroughly tested till the server is \
+ actually configured.\nIf the provided arguments cannot be used, the default \
+ java arguments will be used to configure.\n\nDo you want to continue?
+INFO_JAVA_RUNTIME_OPTIONS_PANEL_TITLE=Runtime Options
+INFO_JAVA_RUNTIME_OPTIONS_PANEL_STEP=Runtime Options
+INFO_JAVA_RUNTIME_OPTIONS_PANEL_INSTRUCTIONS=Specify the runtime options that \
+ the Java virtual machine will use to run the server and the import tool.
+INFO_JAVA_RUNTIME_CHANGE_LABEL=Change...
+INFO_JAVA_RUNTIME_CHANGE_SERVER_TOOLTIP=Click to configure the runtime \
+ options that will be used to run the server.
+INFO_JAVA_RUNTIME_CHANGE_IMPORT_TOOLTIP=Click to configure the runtime \
+ options that will be used to run the import utility.
+INFO_SERVER_RUNTIME_ARGS_LABEL=Server Runtime Settings:
+INFO_IMPORT_RUNTIME_ARGS_LABEL=Import Runtime Settings:
+INFO_DEFAULT_JAVA_ARGUMENTS=Use Default
+INFO_USE_CUSTOM_IMPORT_RUNTIME=Use Custom Values for Import (%s)
+INFO_USE_CUSTOM_SERVER_RUNTIME=Use Custom Values for Server Runtime (%s)
+INFO_USE_JVM_DEFAULT_SETTINGS=Use Default JVM Settings
+INFO_INITIAL_MEMORY=%d Mb Initial Memory
+INFO_MAXIMUM_MEMORY=%d Mb Max Memory
+INFO_MEMORY_PLACEHOLDER=memorySizeInMb
+INFO_ADDITIONAL_ARGUMENTS=Java arguments: %s
+INFO_SERVER_JAVA_ARGUMENTS_TITLE=Server Runtime Settings
+INFO_SERVER_JAVA_ARGUMENTS_MSG=Specify the memory and java arguments that \
+ will be used to run the server.
+INFO_IMPORT_JAVA_ARGUMENTS_TITLE=Import Runtime Settings
+INFO_IMPORT_JAVA_ARGUMENTS_MSG=Specify the memory and java arguments that \
+ will be used when importing data to the server.
+INFO_JAVA_RUNTIME_SETTINGS_TITLE=Java Runtime Settings
+INFO_IMPORT_FILE_WARNING_UPDATE_RUNTIME_ARGS=Considering the size of the \
+ provided LDIF file, the default runtime settings might not be enough to \
+ be able to manage that volume of data.  It is recommended to increase the \
+ maximum memory allowed for both the server runtime and the import.<br><br>\
+ Check the documentation for more information about how to tune the server.
+INFO_AUTOMATICALLY_GENERATED_DATA_WARNING_UPDATE_RUNTIME_ARGS=Considering the \
+ number of entries that will be automatically generated and imported to the \
+ server, the default runtime settings might not be enough to \
+ be able to manage that volume of data.  It is recommended to increase the \
+ maximum memory allowed for both the server runtime and the import.<br><br>\
+ Check the documentation for more information about how to tune the server.
+INFO_REPLICATED_ENTRIES_WARNING_UPDATE_RUNTIME_ARGS=Considering the number \
+ of entries defined in the suffixes of the replicated remote servers, the \
+ default runtime settings might not be enough to be able to manage that \
+ volume of data.  It is recommended to increase the maximum memory allowed for \
+ the server runtime.<br><br>Check the documentation for more information \
+ about how to tune the server.
+

--
Gitblit v1.10.0