From f7fe6c1339f1a7da5723036cbae27ab74e13a9a2 Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Thu, 21 May 2015 12:42:58 +0000
Subject: [PATCH] OPENDJ-1763: verify-index fails with InitializationException when the server is started
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Storage.java | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Storage.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Storage.java
index b485282..ca97c08 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Storage.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Storage.java
@@ -39,6 +39,15 @@
*/
public interface Storage extends Closeable
{
+
+ /** Defines access modes of a Storage. */
+ public enum AccessMode {
+ /** Constant used to open the Storage in read-only mode. */
+ READ_ONLY,
+ /** Constant used to open the Storage in read-write mode. */
+ READ_WRITE;
+ }
+
/**
* Starts the import operation.
*
@@ -54,11 +63,15 @@
/**
* Opens the storage engine to allow executing operations on it.
*
+ * @param accessMode
+ * Specify the access mode to this storage.
+ * @throws NullPointerException
+ * if accessMode is null.
* @throws Exception
* if a problem occurs with the underlying storage engine
* @see #close() to release all resources once import is finished
*/
- void open() throws Exception;
+ void open(AccessMode accessMode) throws Exception;
/**
* Executes a read operation. In case of a read operation rollback, implementations must ensure
--
Gitblit v1.10.0