mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
15.28.2014 bba4ae2052d704110137110ec01c535ced0e1a0c
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);