public interface RepositoryManagement
Modifier and Type | Method and Description |
---|---|
void |
activateServer()
Activates the VCS server used for remote connections.
|
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.
|
void |
deactivateServer()
Deactivates the VCS server used for remote connections.
|
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
|
Collection<MapperClientInfo> |
getClientInfos()
Get info about current VCS server clients
|
String |
getName()
Gets the repository name.
|
String |
getServerURL()
Which is the remote location ?
TODO this info would be better served by a provisioning service.
|
boolean |
isServerActivated()
Is the server available remotely ?
|
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()
boolean isServerActivated()
String getServerURL()
void activateServer()
void deactivateServer()
Collection<MapperClientInfo> getClientInfos()
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 © 2013 Nuxeo SA. All Rights Reserved.