public class RepositoryImpl.WorkspaceInfo extends Object implements UpdateEventListener
WorkspaceInfo
holds the objects that are shared
among multiple per-session WorkspaceImpl
instances
representing the same named workspace, i.e. the same physical
storage.Modifier | Constructor and Description |
---|---|
protected |
RepositoryImpl.WorkspaceInfo(WorkspaceConfig config)
Creates a new
WorkspaceInfo based on the given
config . |
Modifier and Type | Method and Description |
---|---|
protected LockManagerImpl |
createLockManager()
Create a new lock manager.
|
protected void |
doDispose()
Does the actual disposal.
|
protected void |
doInitialize()
Does the actual initialization work.
|
protected void |
doPostInitialize()
Initializes the search manager of this workspace info.
|
protected void |
doVersionRecovery()
If necessary, recover from a lost version history.
|
void |
externalUpdate(ChangeLog external,
List<EventState> events,
long timestamp,
String userData)
Handle an external update.
|
WorkspaceConfig |
getConfig()
Returns the workspace configuration.
|
protected FileSystem |
getFileSystem()
Returns the workspace file system.
|
protected SharedItemStateManager |
getItemStateProvider()
Returns the workspace item state provider
|
protected LockManagerImpl |
getLockManager()
Returns the lock manager for this workspace.
|
protected String |
getName()
Returns the workspace name.
|
protected ObservationDispatcher |
getObservationDispatcher()
Returns the observation dispatcher for this workspace
|
PersistenceManager |
getPersistenceManager()
Returns the workspace persistence manager.
|
protected RetentionRegistry |
getRetentionRegistry()
Return manager used for evaluating effect retention and holds.
|
protected SearchManager |
getSearchManager()
Returns the search manager for this workspace.
|
protected org.apache.jackrabbit.core.SystemSession |
getSystemSession()
Returns the system session for this workspace.
|
boolean |
isActive() |
protected boolean |
isInitialized()
Returns
true if this workspace info is initialized,
otherwise returns false . |
void |
setActive(boolean active) |
protected RepositoryImpl.WorkspaceInfo(WorkspaceConfig config)
WorkspaceInfo
based on the given
config
.config
- workspace configurationprotected String getName()
public WorkspaceConfig getConfig()
protected final boolean isInitialized()
true
if this workspace info is initialized,
otherwise returns false
.true
if this workspace info is initialized.public boolean isActive()
public void setActive(boolean active)
protected FileSystem getFileSystem()
public PersistenceManager getPersistenceManager() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the persistence manager could not be
instantiated/initializedprotected SharedItemStateManager getItemStateProvider() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the workspace item state provider
could not be createdprotected ObservationDispatcher getObservationDispatcher()
protected SearchManager getSearchManager() throws javax.jcr.RepositoryException
null
if no SearchManager
javax.jcr.RepositoryException
- if the search manager could not be createdprotected LockManagerImpl getLockManager() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the lock manager could not be createdprotected LockManagerImpl createLockManager() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected RetentionRegistry getRetentionRegistry() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected org.apache.jackrabbit.core.SystemSession getSystemSession() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the system session could not be createdprotected void doInitialize() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occurs.protected void doVersionRecovery() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void doPostInitialize() throws javax.jcr.RepositoryException
initialized
is already set to true
.javax.jcr.RepositoryException
- if the search manager could not be createdprotected void doDispose()
public void externalUpdate(ChangeLog external, List<EventState> events, long timestamp, String userData) throws javax.jcr.RepositoryException
externalUpdate
in interface UpdateEventListener
external
- external changes containing only node and property ids.events
- events to delivertimestamp
- when the change occurred.userData
- the user data associated with this update.javax.jcr.RepositoryException
- if the update cannot be processedCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.