From 18d8dd990ea2072267b32e3200c3291fdd53576a Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Mon, 23 Apr 2007 13:38:48 +0000
Subject: [PATCH] This integrates the multi-master synchronization with the new admin framework (issue 1477) and makes possible to dynamically add or remove changelog server and synchronization domains in a running server (issue 639).

---
 opendj-sdk/opends/src/server/org/opends/server/api/SynchronizationProvider.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/SynchronizationProvider.java b/opendj-sdk/opends/src/server/org/opends/server/api/SynchronizationProvider.java
index 3305807..063857f 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/SynchronizationProvider.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/SynchronizationProvider.java
@@ -30,7 +30,7 @@
 
 import java.util.List;
 
-import org.opends.server.config.ConfigEntry;
+import org.opends.server.admin.std.server.SynchronizationProviderCfg;
 import org.opends.server.config.ConfigException;
 import org.opends.server.core.AddOperation;
 import org.opends.server.core.DeleteOperation;
@@ -51,8 +51,11 @@
  * the Directory Server are properly communicated to other instances,
  * and potentially to other kinds of applications, so that they can be
  * updated accordingly.
+ *
+ * @param <T> the configuration for the synchronization provider.
  */
-public abstract class SynchronizationProvider
+public abstract class
+  SynchronizationProvider<T extends SynchronizationProviderCfg>
 {
 
 
@@ -61,9 +64,8 @@
    * Performs any initialization that might be necessary for this
    * synchronization provider.
    *
-   * @param  configEntry  The entry containing the configuration
-   *                      information for this synchronization
-   *                      provider.
+   * @param  config  The configuration information for this
+   *                 synchronization provider.
    *
    * @throws  ConfigException  If the provided entry does not contain
    *                           a valid configuration for this
@@ -75,8 +77,7 @@
    *                                   is not related to the server
    *                                   configuration.
    */
-  public abstract void initializeSynchronizationProvider(
-                            ConfigEntry configEntry)
+  public abstract void initializeSynchronizationProvider(T config)
          throws ConfigException, InitializationException;
 
 

--
Gitblit v1.10.0