From 36f277e76984f6184f2694507aeb7a3c8d856fda Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 08 Jul 2007 21:29:59 +0000
Subject: [PATCH] Update the config file handler so that it will report back to clients if a problem occurs while applying a configuration add, delete, or modify after the new configuration has been written to disk.
---
opends/src/server/org/opends/server/messages/ConfigMessages.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opends/src/server/org/opends/server/messages/ConfigMessages.java
index 1b91fad..8e73f83 100644
--- a/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6824,6 +6824,39 @@
+ /**
+ * The message ID for the message that will be used if an error occurred when
+ * attempting to apply configuration changes after an entry had been added to
+ * the server configuration. This takes a single argument, which is a message
+ * explaining the problem(s) that occurred.
+ */
+ public static final int MSGID_CONFIG_FILE_ADD_APPLY_FAILED =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 676;
+
+
+
+ /**
+ * The message ID for the message that will be used if an error occurred when
+ * attempting to apply configuration changes after an entry had been removed
+ * from the server configuration. This takes a single argument, which is a
+ * message explaining the problem(s) that occurred.
+ */
+ public static final int MSGID_CONFIG_FILE_DELETE_APPLY_FAILED =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 677;
+
+
+
+ /**
+ * The message ID for the message that will be used if an error occurred when
+ * attempting to apply configuration changes after an entry had been updated
+ * in the server configuration. This takes a single argument, which is a
+ * message explaining the problem(s) that occurred.
+ */
+ public static final int MSGID_CONFIG_FILE_MODIFY_APPLY_FAILED =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 678;
+
+
+
/**
* Associates a set of generic messages with the message IDs defined in this
@@ -9731,6 +9764,28 @@
"An error occurred while attempting create a text writer " +
"for a Directory Server logger from the information " +
"in configuration entry %s: %s");
+
+
+ registerMessage(MSGID_CONFIG_FILE_ADD_APPLY_FAILED,
+ "The attempt to apply the configuration add failed. The " +
+ "preliminary checks were all successful and the entry " +
+ "was added to the server configuration, but at least one " +
+ "of the configuration add listeners reported an error " +
+ "when attempting to apply the change: %s");
+ registerMessage(MSGID_CONFIG_FILE_DELETE_APPLY_FAILED,
+ "The attempt to apply the configuration delete failed. " +
+ "The preliminary checks were all successful and the " +
+ "entry was removed from the server configuration, but at " +
+ "least one of the configuration delete listeners " +
+ "reported an error when attempting to apply the change: " +
+ "%s");
+ registerMessage(MSGID_CONFIG_FILE_MODIFY_APPLY_FAILED,
+ "The attempt to apply the configuration modification " +
+ "failed. The preliminary checks were all successful and " +
+ "the modified entry was written to the server " +
+ "configuration, but at least one of the configuration " +
+ "change listeners reported an error when attempting to " +
+ "apply the change: %s");
}
}
--
Gitblit v1.10.0