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
public abstract class AbstractBackend extends java.lang.Object implements Backend
Abstract Backend which has a reference to the underlyingCachingDataStoreand is maintaining the lifecycle of the internal asynchronous write executor. 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractBackend() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close backend and release resources like database connection if any.intgetAsyncWritePoolSize()Returns the pool size of the asynchronous write pool executor.voidinit(CachingDataStore dataStore, java.lang.String homeDir, java.lang.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, wait 
- 
Methods inherited from interface org.apache.jackrabbit.core.data.Backend
deleteAllOlderThan, deleteRecord, exists, exists, getAllIdentifiers, getLastModified, getLength, read, touch, touchAsync, write, writeAsync 
 - 
 
 - 
 
- 
- 
Method Detail
- 
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, java.lang.String homeDir, java.lang.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
public void close() throws DataStoreExceptionClose backend and release resources like database connection if any.- Specified by:
 closein interfaceBackend- Throws:
 DataStoreException
 
 - 
 
 -