Package org.apache.jackrabbit.core.data
Class AbstractBackend
java.lang.Object
org.apache.jackrabbit.core.data.AbstractBackend
- All Implemented Interfaces:
Backend
- Direct Known Subclasses:
FSBackend
Abstract Backend which has a reference to the underlying
CachingDataStore and is
maintaining the lifecycle of the internal asynchronous write executor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close backend and release resources like database connection if any.intReturns the pool size of the asynchronous write pool executor.voidinit(CachingDataStore dataStore, String homeDir, String config) This method initialize backend with the configuration.voidsetAsyncWritePoolSize(int asyncWritePoolSize) Sets the pool size of the asynchronous write pool executor.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.core.data.Backend
deleteAllOlderThan, deleteRecord, exists, exists, getAllIdentifiers, getLastModified, getLength, read, touch, touchAsync, write, writeAsync
-
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:
initin interfaceBackend- Parameters:
dataStore-CachingDataStorehomeDir- path of repository home dir.config- path of config property file.- Throws:
DataStoreException
-
close
Close backend and release resources like database connection if any.- Specified by:
closein interfaceBackend- Throws:
DataStoreException
-