From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java b/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
index 0e61774..82bb817 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
@@ -27,11 +27,14 @@
package org.opends.quicksetup.util;
+import org.opends.messages.Message;
+
import org.opends.quicksetup.ApplicationReturnCode;
import org.opends.quicksetup.Installation;
import org.opends.quicksetup.ApplicationException;
-import org.opends.quicksetup.i18n.ResourceProvider;
+
import org.opends.server.util.ServerConstants;
+import static org.opends.messages.QuickSetupMessages.*;
import java.util.List;
@@ -43,7 +46,7 @@
private Installation installation = null;
- private List<String> errors = null;
+ private List<Message> errors = null;
/**
* Regular expression used to determine whether or not a server
@@ -87,8 +90,8 @@
throw (ApplicationException)e;
} else {
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.APPLICATION_ERROR, ResourceProvider
- .getInstance().getMsg("error-server-health-check-failure"), e);
+ ApplicationReturnCode.ReturnCode.APPLICATION_ERROR,
+ INFO_ERROR_SERVER_HEALTH_CHECK_FAILURE.get(), e);
}
} finally {
if (control != null) {
@@ -103,7 +106,7 @@
* has not been called.
* @return List of strings containing error messages
*/
- public List<String> getProblemMessages() {
+ public List<Message> getProblemMessages() {
return errors;
}
--
Gitblit v1.10.0