public abstract class MonitoredBackend extends Object implements RepositoryBackend
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(RepositoryImpl repository)
Initializer.
|
void |
initializeModel(Model model)
Initializes what's needed after the
Model has been created. |
void |
initializeModelSetup(ModelSetup modelSetup)
Initializes the
ModelSetup. |
Mapper |
newMapper(Model model,
Session.PathResolver pathResolver,
Credentials credentials,
boolean create)
Creates a new instance a
Mapper. |
void |
shutdown()
Shuts down the backend.
|
public Mapper newMapper(Model model, Session.PathResolver pathResolver, Credentials credentials, boolean create) throws StorageException
RepositoryBackendMapper. Called once for every new
session.newMapper in interface RepositoryBackendmodel - the modelpathResolver - the path resolvercredentials - the core session credentialscreate - true if the database has to be created
(initialization)StorageExceptionpublic void initialize(RepositoryImpl repository) throws StorageException
RepositoryBackendinitialize in interface RepositoryBackendStorageExceptionpublic void initializeModel(Model model) throws StorageException
RepositoryBackendModel has been created.
Called once lazily at repository initialization.initializeModel in interface RepositoryBackendStorageExceptionpublic void initializeModelSetup(ModelSetup modelSetup) throws StorageException
RepositoryBackendModelSetup. Called once lazily at repository
initialization.initializeModelSetup in interface RepositoryBackendStorageExceptionpublic void shutdown()
throws StorageException
RepositoryBackendshutdown in interface RepositoryBackendStorageExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.