public abstract class DBSRepositoryBase extends Object implements DBSRepository
Modifier and Type | Class and Description |
---|---|
protected static class |
DBSRepositoryBase.BlobFinder
Finds the paths for all blobs in all document types.
|
static class |
DBSRepositoryBase.DBSSessionInvoker
An indirection to a base
DBSSession intercepting close() to not close the base session until the
transaction itself is closed. |
class |
DBSRepositoryBase.TransactionContext
Context maintained during a transaction, holding the base session used, and all session proxy handles that have
been returned to callers.
|
Modifier and Type | Field and Description |
---|---|
protected BlobManager |
blobManager |
protected boolean |
DEBUG_UUIDS |
protected FulltextConfiguration |
fulltextConfiguration |
protected LockManager |
lockManager |
protected String |
repositoryName |
protected boolean |
selfRegisteredLockManager |
Map<Transaction,DBSRepositoryBase.TransactionContext> |
transactionContexts |
static String |
TYPE_ROOT |
Constructor and Description |
---|
DBSRepositoryBase(String repositoryName,
FulltextDescriptor fulltextDescriptor) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveSessionsCount() |
BlobManager |
getBlobManager()
Gets the blob manager.
|
FulltextConfiguration |
getFulltextConfiguration()
Gets the fulltext configuration.
|
LockManager |
getLockManager()
Gets the lock manager for this repository.
|
protected String |
getLockManagerName() |
String |
getName() |
String |
getRootId()
Gets the root id.
|
Session |
getSession() |
protected abstract void |
initBlobsPaths() |
protected void |
initLockManager() |
void |
initRoot()
Initializes the root and its ACP.
|
boolean |
isFulltextDisabled()
Checks if fulltext indexing is disabled.
|
protected DBSSession |
newSession() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createState, deleteStates, generateNewId, hasChild, queryAndFetch, queryKeyValue, queryKeyValue, queryKeyValueArray, queryKeyValuePresence, readChildState, readState, readStates, updateState
markReferencedBinaries
canLockBeRemoved, clearLockManagerCaches, closeLockManager, getLock, removeLock, setLock
public static final String TYPE_ROOT
protected final boolean DEBUG_UUIDS
protected final String repositoryName
protected final FulltextConfiguration fulltextConfiguration
protected final BlobManager blobManager
protected LockManager lockManager
protected boolean selfRegisteredLockManager
public Map<Transaction,DBSRepositoryBase.TransactionContext> transactionContexts
public DBSRepositoryBase(String repositoryName, FulltextDescriptor fulltextDescriptor)
public void shutdown()
shutdown
in interface Repository
public String getName()
getName
in interface Repository
public FulltextConfiguration getFulltextConfiguration()
DBSRepository
getFulltextConfiguration
in interface DBSRepository
protected String getLockManagerName()
protected void initLockManager()
public LockManager getLockManager()
DBSRepository
getLockManager
in interface DBSRepository
protected abstract void initBlobsPaths()
public void initRoot()
public String getRootId()
DBSRepository
getRootId
in interface DBSRepository
public BlobManager getBlobManager()
DBSRepository
getBlobManager
in interface DBSRepository
public boolean isFulltextDisabled()
DBSRepository
isFulltextDisabled
in interface DBSRepository
true
if fulltext indexing is disabled, false
if it is enabledpublic int getActiveSessionsCount()
getActiveSessionsCount
in interface Repository
public Session getSession()
getSession
in interface Repository
protected DBSSession newSession()
Copyright © 2016 Nuxeo SA. All rights reserved.