Class AbstractBackend

java.lang.Object
org.apache.jackrabbit.core.data.AbstractBackend
All Implemented Interfaces:
Backend
Direct Known Subclasses:
FSBackend

public abstract class AbstractBackend extends Object implements Backend
Abstract Backend which has a reference to the underlying CachingDataStore and is maintaining the lifecycle of the internal asynchronous write executor.
  • Constructor Details

    • AbstractBackend

      public AbstractBackend()
  • Method Details

    • getAsyncWritePoolSize

      public int getAsyncWritePoolSize()
      Returns the pool size of the asynchronous write pool executor.
      Returns:
      the pool size of the asynchronous write pool executor
    • setAsyncWritePoolSize

      public void setAsyncWritePoolSize(int asyncWritePoolSize)
      Sets the pool size of the asynchronous write pool executor.
      Parameters:
      asyncWritePoolSize - pool size of the async write pool executor
    • init

      public void init(CachingDataStore dataStore, String homeDir, String config) throws DataStoreException
      This method initialize backend with the configuration.
      Specified by:
      init in interface Backend
      Parameters:
      dataStore - CachingDataStore
      homeDir - path of repository home dir.
      config - path of config property file.
      Throws:
      DataStoreException
    • close

      public void close() throws DataStoreException
      Close backend and release resources like database connection if any.
      Specified by:
      close in interface Backend
      Throws:
      DataStoreException