Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Interface RepositoryManagement

All Known Subinterfaces:
Repository
All Known Implementing Classes:
ConnectionFactoryImpl, ManagedConnectionFactoryImpl, RepositoryImpl

public interface RepositoryManagement

Author:
Florent Guillaume

Method Summary
 void activateServer()
          Activates the VCS server used for remote connections.
 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.
 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.
 

Method Detail

getName

String getName()
Gets the repository name.


getActiveSessionsCount

int getActiveSessionsCount()
Gets the number of active sessions.


clearCaches

int clearCaches()
Clears all the caches.

Returns:
an indicative count of objects removed

processClusterInvalidationsNext

void processClusterInvalidationsNext()
Makes sure that the next transaction will process cluster invalidations.


isServerActivated

boolean isServerActivated()
Is the server available remotely ?


getServerURL

String getServerURL()
Which is the remote location ? TODO this info would be better served by a provisioning service. The remote location is dependent to the context of access.


activateServer

void activateServer()
Activates the VCS server used for remote connections.


deactivateServer

void deactivateServer()
Deactivates the VCS server used for remote connections.


getClientInfos

Collection<MapperClientInfo> getClientInfos()
Get info about current VCS server clients


getBinaryGarbageCollector

BinaryGarbageCollector getBinaryGarbageCollector()
Gets the binary GC for this repository.

Returns:
the binary garbage collector

markReferencedBinaries

void markReferencedBinaries(BinaryGarbageCollector gc)
Marks the binaries actually in use with the GC so that they won't be deleted.

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.

Parameters:
gc - the binary garbage collector to use for this repository's binaries

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.