Interface RepositoryManager

All Known Implementing Classes:

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
 DataStoreGarbageCollector createDataStoreGarbageCollector()
          Create a data store garbage collector for this repository.
 void stop()
          Shuts down the repository.

Method Detail


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.


DataStoreGarbageCollector createDataStoreGarbageCollector()
                                                          throws RepositoryException
Create a data store garbage collector for this repository.

the data store garbage collector if the data store is enabled, null otherwise

Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.