From bba4ae2052d704110137110ec01c535ced0e1a0c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 15 Dec 2014 10:28:58 +0000
Subject: [PATCH] OPENDJ-1602 (CR-5566) New pluggable storage based backend
---
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java
index 718e88d..7fd7911 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java
@@ -80,7 +80,7 @@
{
private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
- interface Importer extends Closeable
+ public interface Importer extends Closeable
{
void createTree(TreeName name);
@@ -90,12 +90,12 @@
void close();
}
- interface ReadOperation<T>
+ public interface ReadOperation<T>
{
T run(ReadableStorage txn) throws Exception;
}
- interface ReadableStorage
+ public interface ReadableStorage
{
ByteString get(TreeName name, ByteSequence key);
@@ -106,7 +106,7 @@
// TODO: contains, etc.
}
- interface Cursor extends Closeable
+ public interface Cursor extends Closeable
{
boolean positionToKey(ByteSequence key);
@@ -126,7 +126,7 @@
public void close();
}
- interface Storage extends Closeable
+ public interface Storage extends Closeable
{
void initialize(Map<String, String> options) throws Exception;
@@ -138,7 +138,7 @@
<T> T read(ReadOperation<T> readTransaction) throws Exception;
- void update(WriteOperation updateTransaction) throws Exception;
+ void write(WriteOperation updateTransaction) throws Exception;
Cursor openCursor(TreeName name);
@@ -147,7 +147,7 @@
}
@SuppressWarnings("serial")
- static final class StorageRuntimeException extends RuntimeException
+ public static final class StorageRuntimeException extends RuntimeException
{
public StorageRuntimeException(final String message)
@@ -167,7 +167,7 @@
}
/** Assumes name components don't contain a '/'. */
- static final class TreeName
+ public static final class TreeName
{
public static TreeName of(final String... names)
{
@@ -257,12 +257,12 @@
}
}
- interface WriteOperation
+ public interface WriteOperation
{
void run(WriteableStorage txn) throws Exception;
}
- interface WriteableStorage extends ReadableStorage
+ public interface WriteableStorage extends ReadableStorage
{
void put(TreeName name, ByteSequence key, ByteSequence value);
--
Gitblit v1.10.0