From 73d88be801a676244bd429e223d217c688291f02 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 07 Nov 2016 15:05:30 +0000
Subject: [PATCH] OPENDJ-3417 Rename Backend to LocalBackend
---
opendj-server-legacy/src/main/java/org/opends/server/tools/RebuildIndex.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/RebuildIndex.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/RebuildIndex.java
index 858b168..6218d61 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/RebuildIndex.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/RebuildIndex.java
@@ -33,8 +33,8 @@
import org.forgerock.opendj.config.server.ConfigException;
import org.forgerock.opendj.ldap.DN;
import org.forgerock.opendj.server.config.server.BackendCfg;
-import org.opends.server.api.Backend;
-import org.opends.server.api.Backend.BackendOperation;
+import org.opends.server.api.LocalBackend;
+import org.opends.server.api.LocalBackend.BackendOperation;
import org.opends.server.backends.RebuildConfig;
import org.opends.server.backends.RebuildConfig.RebuildMode;
import org.opends.server.core.DirectoryServer;
@@ -77,7 +77,7 @@
INFO_REBUILDINDEX_TOOL_DESCRIPTION.get());
private RebuildConfig rebuildConfig = new RebuildConfig();
- private Backend<?> currentBackend;
+ private LocalBackend<?> currentBackend;
/**
* Processes the command-line arguments and invokes the rebuild process.
@@ -410,7 +410,7 @@
* process.
* @return An integer representing the result of the process.
*/
- private int rebuildIndex(final Backend<?> backend, final RebuildConfig rebuildConfig)
+ private int rebuildIndex(final LocalBackend<?> backend, final RebuildConfig rebuildConfig)
{
// Acquire an exclusive lock for the backend.
//TODO: Find a way to do this with the server online.
@@ -479,18 +479,18 @@
* @throws Exception
* If an exception occurred during the backend search.
*/
- private Backend<?> retrieveBackend(final DN selectedDN) throws ConfigException, Exception
+ private LocalBackend<?> retrieveBackend(final DN selectedDN) throws ConfigException, Exception
{
- final List<Backend<?>> backendList = new ArrayList<>();
+ final List<LocalBackend<?>> backendList = new ArrayList<>();
final List<BackendCfg> entryList = new ArrayList<>();
final List<List<DN>> dnList = new ArrayList<>();
BackendToolUtils.getBackends(backendList, entryList, dnList);
- Backend<?> backend = null;
+ LocalBackend<?> backend = null;
final int numBackends = backendList.size();
for (int i = 0; i < numBackends; i++)
{
- final Backend<?> b = backendList.get(i);
+ final LocalBackend<?> b = backendList.get(i);
final List<DN> baseDNs = dnList.get(i);
if (baseDNs.contains(selectedDN))
{
@@ -682,7 +682,7 @@
*
* @return The current backend.
*/
- public Backend<?> getCurrentBackend()
+ public LocalBackend<?> getCurrentBackend()
{
return currentBackend;
}
@@ -693,7 +693,7 @@
* @param currentBackend
* The current backend to set.
*/
- public void setCurrentBackend(Backend<?> currentBackend)
+ public void setCurrentBackend(LocalBackend<?> currentBackend)
{
this.currentBackend = currentBackend;
}
--
Gitblit v1.10.0