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 underlyingCachingDataStore
and 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 void
close()
Close backend and release resources like database connection if any.int
getAsyncWritePoolSize()
Returns the pool size of the asynchronous write pool executor.void
init(CachingDataStore dataStore, java.lang.String homeDir, java.lang.String config)
This method initialize backend with the configuration.void
setAsyncWritePoolSize(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:
init
in interfaceBackend
- 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 interfaceBackend
- Throws:
DataStoreException
-
-