From aa160386929ecf4162592214c75ae577a019be50 Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Thu, 19 Oct 2006 16:17:53 +0000
Subject: [PATCH] Add support for collecting verifyBackend statistics such as error-count and key-count in an Entry class, so calling methods can access to that information.
---
opends/src/server/org/opends/server/backends/jeb/BackendImpl.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
index 9271dc7..aab7133 100644
--- a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
+++ b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
@@ -1120,6 +1120,7 @@
* @param configEntry The backend instance configuration entry.
* @param baseDNs The set of base DNs that have been configured for this
* backend.
+ * @param statEntry Optional entry to save stats into.
* @throws ConfigException If an unrecoverable problem arises during
* initialization.
* @throws InitializationException If a problem occurs during initialization
@@ -1128,7 +1129,7 @@
* @throws DirectoryException If a Directory Server error occurs.
*/
public void verifyBackend(VerifyConfig verifyConfig, ConfigEntry configEntry,
- DN[] baseDNs)
+ DN[] baseDNs, Entry statEntry)
throws InitializationException, ConfigException, DirectoryException
{
assert debugEnter(CLASS_NAME, "verifyBackend");
@@ -1154,7 +1155,7 @@
}
VerifyJob verifyJob = new VerifyJob(config, verifyConfig);
- verifyJob.verifyBackend(rootContainer);
+ verifyJob.verifyBackend(rootContainer, statEntry);
}
catch (DatabaseException e)
{
--
Gitblit v1.10.0