public abstract class MonitoredBackend extends Object implements RepositoryBackend
Modifier | Constructor and Description |
---|---|
protected |
MonitoredBackend(RepositoryBackend wrapped) |
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,
boolean useInvalidations)
Creates a new instance a
Mapper . |
void |
setClusterInvalidator(ClusterInvalidator clusterInvalidator)
Sets the cluster invalidator, to be used by future mappers created.
|
void |
shutdown()
Shuts down the backend.
|
protected MonitoredBackend(RepositoryBackend wrapped)
public Mapper newMapper(Model model, Session.PathResolver pathResolver, boolean useInvalidations)
RepositoryBackend
Mapper
. Called once for every new session.newMapper
in interface RepositoryBackend
model
- the modelpathResolver
- the path resolveruseInvalidations
- whether this mapper participates in invalidation propagationpublic void initialize(RepositoryImpl repository)
RepositoryBackend
initialize
in interface RepositoryBackend
public void initializeModel(Model model)
RepositoryBackend
Model
has been created. Called once lazily at repository
initialization.initializeModel
in interface RepositoryBackend
public void initializeModelSetup(ModelSetup modelSetup)
RepositoryBackend
ModelSetup
. Called once lazily at repository initialization.initializeModelSetup
in interface RepositoryBackend
public void setClusterInvalidator(ClusterInvalidator clusterInvalidator)
RepositoryBackend
setClusterInvalidator
in interface RepositoryBackend
public void shutdown()
RepositoryBackend
shutdown
in interface RepositoryBackend
Copyright © 2015 Nuxeo SA. All rights reserved.