From 03fe0954e42abf00746b8efa4c79ee74cf514427 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Thu, 27 May 2010 15:10:50 +0000
Subject: [PATCH] Fix an issue with connection timeouts in CLI. The timeout is now configurable on CLI with the --connectTimeout option (expressed in milliseconds), the default is 30 000 milliseconds. This solves Issue 4196.
---
opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
index dd387a1..518caf7 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
@@ -71,6 +71,8 @@
/** The QuickSetupDialog in control. */
private QuickSetupDialog qs;
+ private String[] args = {};
+
/**
* Constructs an instance of an application. Subclasses
* of this application must have a default constructor.
@@ -633,4 +635,23 @@
public void setQuickSetupDialog(QuickSetupDialog dialog) {
this.qs = dialog;
}
+
+ /**
+ * Sets the arguments passed in the command-line to launch the application.
+ * @param args the arguments passed in the command-line to launch the
+ * application.
+ */
+ public void setUserArguments(String[] args)
+ {
+ this.args = args;
+ }
+
+ /**
+ * Returns the arguments passed in the command-line to launch the application.
+ * @return the arguments passed in the command-line to launch the application.
+ */
+ public String[] getUserArguments()
+ {
+ return args;
+ }
}
--
Gitblit v1.10.0