Interface RepositoryManager
-
public interface RepositoryManager
The repository manager provides life-cycle management features for repositories. Not all implementations are required to implement all features, for example some implementations may not support starting a repository after is has been stopped.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataStoreGarbageCollector
createDataStoreGarbageCollector()
Create a data store garbage collector for this repository.void
stop()
Shuts down the repository.
-
-
-
Method Detail
-
stop
void stop()
Shuts down the repository. A Jackrabbit repository instance contains a acquired resources and cached data that needs to be released and persisted when the repository is no longer used. This method handles all these shutdown tasks and should therefore be called by the client application once the repository instance is no longer used.Possible errors are logged rather than thrown as exceptions as there is little that a client application could do in such a case.
-
createDataStoreGarbageCollector
DataStoreGarbageCollector createDataStoreGarbageCollector() throws RepositoryException
Create a data store garbage collector for this repository.- Returns:
- the data store garbage collector if the data store is enabled, null otherwise
- Throws:
RepositoryException
-
-