From 679051a2a5aea0a95298083f1840735ea40bc71c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 12 Mar 2007 16:36:07 +0000
Subject: [PATCH] Provide a mechanism for the server to notify the synchronization service about any schema changes that occur.  The synchronization service can already handle schema changes that occur over protocol with the server online, but this set of changes adds support for detecting schema changes made by directly editing the schema configuration files with the server offline, as well as new schema elements added through the add schema file task.

---
 opends/src/server/org/opends/server/messages/TaskMessages.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/TaskMessages.java b/opends/src/server/org/opends/server/messages/TaskMessages.java
index 0fcd0c6..16843e3 100644
--- a/opends/src/server/org/opends/server/messages/TaskMessages.java
+++ b/opends/src/server/org/opends/server/messages/TaskMessages.java
@@ -202,6 +202,18 @@
 
 
   /**
+   * The message ID for the shutdown message that will be used if an error
+   * occurs while trying to notify a synchronization provider about the new
+   * schema elements added to the server.  This takes two arguments, which are
+   * the name of the synchronization provider class and a string representation
+   * of the exception that was caught.
+   */
+  public static final int MSGID_TASK_ADDSCHEMAFILE_CANNOT_NOTIFY_SYNC_PROVIDER =
+       CATEGORY_MASK_TASK | SEVERITY_MASK_SEVERE_ERROR | 17;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -245,6 +257,10 @@
     registerMessage(MSGID_TASK_ADDSCHEMAFILE_ERROR_LOADING_SCHEMA_FILE,
                     "An error occurred while attempting to load the contents " +
                     "of schema file %s into the server schema:  %s.");
+    registerMessage(MSGID_TASK_ADDSCHEMAFILE_CANNOT_NOTIFY_SYNC_PROVIDER,
+                    "An error occurred while attempting to notify a " +
+                    "synchronization provider of type %s about the schema " +
+                    "changes made by the add schema file task:  %s.");
     registerMessage(MSGID_TASK_ADDSCHEMAFILE_CANNOT_LOCK_SCHEMA,
                     "Unable to add one or more files to the server schema " +
                     "because the server was unable to obtain a write lock on " +

--
Gitblit v1.10.0