From 07572b1a1f310425277e769bc497f2256121f192 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 15 May 2007 20:32:42 +0000
Subject: [PATCH] This commit removes the Web Start version of the upgrader's ability to download arbitrary builds to be used for upgrading.  Instead, the Web Start version of upgrade will be tied to the  build version of upgrader.  This is necessary after discovering that attemping to perform internal communication with the directory server when the DS bit and the upgraders bits are of different versions is problematic.

---
 opends/src/quicksetup/org/opends/quicksetup/util/OperationOutput.java |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/OperationOutput.java b/opends/src/quicksetup/org/opends/quicksetup/util/OperationOutput.java
index 8daec2d..c1d6e47 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/OperationOutput.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/OperationOutput.java
@@ -36,8 +36,11 @@
  */
 public class OperationOutput {
 
+  private int returnCode = -1;
+
   private Exception exception = null;
 
+  private List<String> outputMessages = new ArrayList<String>();
   private List<String> errorMessages = new ArrayList<String>();
   private List<String> debugMessages = new ArrayList<String>();
   private List<String> accessMessages = new ArrayList<String>();
@@ -69,6 +72,15 @@
   }
 
   /**
+   * Gets a list of strings representing output messages obtained
+   * by invoking the operation.
+   * @return List of Strings representing errorMessages
+   */
+  public List<String> getOutputMessages() {
+    return Collections.unmodifiableList(outputMessages);
+  }
+
+  /**
    * Gets a list of strings representing error messages obtained
    * by invoking the operation.
    * @return List of Strings representing errorMessages
@@ -96,6 +108,15 @@
   }
 
   /**
+   * Gets the return code produced by the operation if any.
+   * @return int representing any return code returned by the
+   * operation.  -1 indicates no return code was set.
+   */
+  public int getReturnCode() {
+    return this.returnCode;
+  }
+
+  /**
    * Sets the exception that occurred during execution.  Can be null to
    * indicate no exception was encountered.
    * @param exception Exception that occurred during invocation of the operation
@@ -113,6 +134,14 @@
   }
 
   /**
+   * Adds an output message.
+   * @param outputMessage an error message
+   */
+  void addOutputMessage(String outputMessage) {
+    this.outputMessages.add(outputMessage);
+  }
+
+  /**
    * Adds an access message.
    * @param accessMessage an error message
    */
@@ -145,4 +174,11 @@
     this.debugMessages = debugMessages;
   }
 
+  /**
+   * Sets the return code of the operation.
+   * @param i int representing the return code
+   */
+  void setReturnCode(int i) {
+    this.returnCode = i;
+  }
 }

--
Gitblit v1.10.0