From 313c7ce226afaa79e811d6fa0f5ad8b8a59f0fd5 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 13 Aug 2007 14:48:19 +0000
Subject: [PATCH] Provide a new org.opends.server.util.EmbeddedUtils class that can be used to simplify the process of running the server as an embedded application. There are methods to start, stop, and restart the server, as well as to determine whether the server is running. Also, provide a new org.opends.server.types.DirectoryEnvironmentConfig class that can be used to define a number of "environment" properties that provide information about the way in which the server should run.
---
opends/src/server/org/opends/server/messages/UtilityMessages.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/UtilityMessages.java b/opends/src/server/org/opends/server/messages/UtilityMessages.java
index 1b5796d..f4f3ab3 100644
--- a/opends/src/server/org/opends/server/messages/UtilityMessages.java
+++ b/opends/src/server/org/opends/server/messages/UtilityMessages.java
@@ -1753,6 +1753,15 @@
/**
+ * The message ID for the message that will be used if an attempt is made to
+ * start the Directory Server if it is already running. It does not take any
+ * arguments.
+ */
+ public static final int MSGID_EMBEDUTILS_SERVER_ALREADY_RUNNING =
+ CATEGORY_MASK_UTIL | SEVERITY_MASK_SEVERE_ERROR | 167;
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -2333,6 +2342,11 @@
registerMessage(MSGID_EXPCHECK_TRUSTMGR_SERVER_CERT_NOT_YET_VALID,
"Refusing to trust server or issuer certificate '%s' " +
"because it is not valid until %s");
+
+
+ registerMessage(MSGID_EMBEDUTILS_SERVER_ALREADY_RUNNING,
+ "The Directory Server cannot be started because it is " +
+ "already running");
}
}
--
Gitblit v1.10.0