From 04ead8f1c81d759108686bbd4add4b9eee542c2e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 11 Apr 2007 18:51:40 +0000
Subject: [PATCH] During schema and configuration upgrade, the server is started 'in process' without any connection handlers and the changes are made using an internal connection to the server. During configuration/schema updates:
---
opends/src/quicksetup/org/opends/quicksetup/Application.java | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/Application.java b/opends/src/quicksetup/org/opends/quicksetup/Application.java
index 93fc59a..b0420e6 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Application.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Application.java
@@ -33,6 +33,7 @@
import org.opends.quicksetup.i18n.ResourceProvider;
import org.opends.quicksetup.util.Utils;
import org.opends.quicksetup.util.ProgressMessageFormatter;
+import org.opends.quicksetup.util.ServerController;
import org.opends.quicksetup.ui.QuickSetupDialog;
import org.opends.quicksetup.ui.QuickSetupStepPanel;
import org.opends.quicksetup.ui.FramePanel;
@@ -110,6 +111,8 @@
private Installation installation;
+ private ServerController serverController;
+
/** Formats progress messages. */
protected ProgressMessageFormatter formatter;
@@ -190,6 +193,25 @@
}
/**
+ * Sets the application's installation.
+ * @param installation describing the application's OpenDS installation
+ */
+ protected void setInstallation(Installation installation) {
+ this.installation = installation;
+ }
+
+ /**
+ * Gets a server controller for use by this application.
+ * @return ServerController that can be used to start and stop the server.
+ */
+ public ServerController getServerController() {
+ if (serverController == null) {
+ serverController = new ServerController(this);
+ }
+ return serverController;
+ }
+
+ /**
* Returns the UserData object representing the parameters provided by
* the user to do the installation.
*
@@ -281,7 +303,7 @@
* @param args the arguments to be passed to generate the resulting value.
* @return the value associated to the key in the properties file.
*/
- public String getMsg(String key, String[] args)
+ public String getMsg(String key, String... args)
{
return getI18n().getMsg(key, args);
}
--
Gitblit v1.10.0