From c22404d2ae49ed50c10f0da2f8d7ed032ebd5fed Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 04 Sep 2007 23:54:02 +0000
Subject: [PATCH] Add a new LDIF connection handler, which can be used to watch for new LDIF files to be created in a directory, at which point the changes contained in those LDIF files will be processed by the server using internal operations. This can potentially be used to make configuration changes or invoke tasks if the server is unresponsive to external clients (e.g., all worker threads are busy).
---
opends/src/server/org/opends/server/util/ServerConstants.java | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index 336772f..2d54cca 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -1659,6 +1659,50 @@
/**
+ * The description for the alert type that will be used for the alert
+ * notification generated when the LDIF connection handler is unable to
+ * process the contents of a file as valid LDIF.
+ */
+ public static final String ALERT_DESCRIPTION_LDIF_CONNHANDLER_PARSE_ERROR =
+ "This alert type will be used to provide notification that the " +
+ "LDIF connection handler encountered an unrecoverable error while " +
+ "attempting to parse an LDIF file.";
+
+
+
+ /**
+ * The alert type string that will be used for the alert notification
+ * generated when the LDIF connection handler is unable to process the
+ * contents of a file as valid LDIF.
+ */
+ public static final String ALERT_TYPE_LDIF_CONNHANDLER_PARSE_ERROR =
+ "org.opends.server.LDIFConnectionHandlerParseError";
+
+
+
+ /**
+ * The description for the alert type that will be used for the alert
+ * notification generated if an I/O error occurs while attempting to
+ * read or write LDIF content.
+ */
+ public static final String ALERT_DESCRIPTION_LDIF_CONNHANDLER_IO_ERROR =
+ "This alert type will be used to provide notification that the " +
+ "LDIF connection handler encountered an I/O error that prevented it " +
+ "from completing its processing.";
+
+
+
+ /**
+ * The alert type string that will be used for the alert notification
+ * generated if an I/O error occurs while attempting to read or write LDIF
+ * content.
+ */
+ public static final String ALERT_TYPE_LDIF_CONNHANDLER_IO_ERROR =
+ "org.opends.server.LDIFConnectionHandlerIOError";
+
+
+
+ /**
* The name of the default password storage scheme that will be used for new
* passwords.
*/
--
Gitblit v1.10.0