public interface RepositoryManagement
Modifier and Type | Method and Description |
---|---|
int |
cleanupDeletedDocuments(int max,
Calendar beforeTime)
Cleans up (hard-deletes) any documents that have been soft-deleted in the database.
|
int |
clearCaches()
Clears all the caches.
|
int |
getActiveSessionsCount()
Gets the number of active sessions.
|
BinaryGarbageCollector |
getBinaryGarbageCollector()
Gets the binary GC for this repository.
|
long |
getCachePristineSize()
Evaluate number of elements in hier cache
|
long |
getCacheSelectionSize()
Evaluate number of elements in selection cache
|
long |
getCacheSize()
Evaluate number of elements in all caches
|
String |
getName()
Gets the repository name.
|
void |
markReferencedBinaries(BinaryGarbageCollector gc)
Marks the binaries actually in use with the GC so that they won't be deleted.
|
void |
processClusterInvalidationsNext()
Makes sure that the next transaction will process cluster invalidations.
|
String getName()
int getActiveSessionsCount()
long getCacheSize()
long getCachePristineSize()
long getCacheSelectionSize()
int clearCaches()
void processClusterInvalidationsNext()
BinaryGarbageCollector getBinaryGarbageCollector()
void markReferencedBinaries(BinaryGarbageCollector gc)
The passed GC may or may not be the one returned by getBinaryGarbageCollector()
in case it's been
determined that another repository's GC is pointing to the same binary data.
gc
- the binary garbage collector to use for this repository's binariesint cleanupDeletedDocuments(int max, Calendar beforeTime)
max
- the maximum number of documents to delete at a timebeforeTime
- the maximum deletion time of the documents to deleteCopyright © 2015 Nuxeo SA. All rights reserved.