From 35af51f9683f5ef8cec66baca7b89aa1e1cbc44e Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 11 May 2007 23:27:30 +0000
Subject: [PATCH] Issue 1532: Remove ConfigEntry from Backend API. (DS-1532)
---
opends/src/server/org/opends/server/backends/jeb/BackupManager.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/BackupManager.java b/opends/src/server/org/opends/server/backends/jeb/BackupManager.java
index 65ac7f1..291f9ff 100644
--- a/opends/src/server/org/opends/server/backends/jeb/BackupManager.java
+++ b/opends/src/server/org/opends/server/backends/jeb/BackupManager.java
@@ -26,7 +26,6 @@
*/
package org.opends.server.backends.jeb;
-import org.opends.server.config.ConfigEntry;
import org.opends.server.config.ConfigException;
import org.opends.server.core.DirectoryServer;
import org.opends.server.util.DynamicConstants;
@@ -77,6 +76,7 @@
import static org.opends.server.messages.JebMessages.*;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.*;
+import org.opends.server.admin.std.server.JEBackendCfg;
/**
* A backup manager for JE backends.
@@ -138,19 +138,19 @@
* log files that are unchanged since the previous backup. The remaining
* zip entries are the JE log files themselves, which, for an incremental,
* only include those files that have changed.
- * @param configEntry The configuration entry of the backend instance for
+ * @param cfg The configuration of the backend instance for
* which the backup is required.
* @param backupConfig The configuration to use when performing the backup.
* @throws DirectoryException If a Directory Server error occurs.
*/
- public void createBackup(ConfigEntry configEntry, BackupConfig backupConfig)
+ public void createBackup(JEBackendCfg cfg, BackupConfig backupConfig)
throws DirectoryException
{
// Parse our backend configuration.
Config config = new Config();
try
{
- config.initializeConfig(configEntry, null);
+ config.initializeConfig(cfg);
}
catch (ConfigException e)
{
@@ -747,12 +747,12 @@
/**
* Restore a JE backend from backup, or verify the backup.
- * @param configEntry The configuration entry of the backend instance to be
+ * @param cfg The configuration of the backend instance to be
* restored.
* @param restoreConfig The configuration to use when performing the restore.
* @throws DirectoryException If a Directory Server error occurs.
*/
- public void restoreBackup(ConfigEntry configEntry,
+ public void restoreBackup(JEBackendCfg cfg,
RestoreConfig restoreConfig)
throws DirectoryException
{
@@ -767,7 +767,7 @@
Config config = new Config();
try
{
- config.initializeConfig(configEntry, null);
+ config.initializeConfig(cfg);
}
catch (ConfigException e)
{
--
Gitblit v1.10.0