From 8d540fde5ca1ce5a2ddc8d5faf2e0f5385e2f4c5 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 21 Jan 2015 11:27:33 +0000
Subject: [PATCH] OPENDJ-1708 Persistit: no rebuild-index support
---
opendj3-server-dev/src/server/org/opends/server/api/Backend.java | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/api/Backend.java b/opendj3-server-dev/src/server/org/opends/server/api/Backend.java
index 4dd4c57..4f4af42 100644
--- a/opendj3-server-dev/src/server/org/opends/server/api/Backend.java
+++ b/opendj3-server-dev/src/server/org/opends/server/api/Backend.java
@@ -41,6 +41,7 @@
import org.forgerock.opendj.ldap.ResultCode;
import org.forgerock.opendj.ldap.schema.MatchingRule;
import org.opends.server.admin.Configuration;
+import org.opends.server.backends.RebuildConfig;
import org.opends.server.backends.VerifyConfig;
import org.opends.server.core.AddOperation;
import org.opends.server.core.DeleteOperation;
@@ -683,6 +684,27 @@
}
/**
+ * Rebuild indexes in the backend instance. Note that the server will not explicitly initialize
+ * this backend before calling this method.
+ *
+ * @param rebuildConfig
+ * The rebuild configuration.
+ * @throws ConfigException
+ * If an unrecoverable problem arises during initialization.
+ * @throws InitializationException
+ * If a problem occurs during initialization that is not related to the server
+ * configuration.
+ * @throws DirectoryException
+ * If a Directory Server error occurs.
+ */
+ public void rebuildBackend(RebuildConfig rebuildConfig) throws InitializationException, ConfigException,
+ DirectoryException
+ {
+ throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM,
+ ERR_INDEXES_NOT_SUPPORTED.get(getBackendID()));
+ }
+
+ /**
* Indicates whether this backend provides a backup mechanism of any
* kind. This method is used by the backup process when backing up
* all backends to determine whether this backend is one that should
--
Gitblit v1.10.0