public class JdbmPartition
extends org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition
Partition that stores entries in
JDBM database.ADD_CHILD, ADMINISTRATIVE_ROLE_AT, adminRoleIdx, aliasCache, ALIASED_OBJECT_NAME_AT, aliasIdx, cacheSize, CONTEXT_CSN_AT, DEFAULT_CACHE_SIZE, ENTRY_CSN_AT, ENTRY_DN_AT, ENTRY_UUID_AT, entryCsnIdx, isSyncOnWrite, master, OBJECT_CLASS_AT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndicescacheService, contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDn| Constructor and Description |
|---|
JdbmPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
org.apache.directory.server.core.api.DnFactory dnFactory)
Creates a store based on JDBM B+Trees.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(String id,
org.apache.directory.api.ldap.model.entry.Entry entry) |
protected org.apache.directory.server.xdbm.Index<?,String> |
convertAndInit(org.apache.directory.server.xdbm.Index<?,String> index) |
protected org.apache.directory.server.xdbm.Index |
createSystemIndex(String oid,
URI path,
boolean withReverse) |
protected void |
doDestroy() |
protected void |
doInit() |
String |
getDefaultId()
}
|
String |
getRootId() |
org.apache.directory.api.ldap.model.entry.Entry |
lookupCache(String id) |
void |
sync()
This method is called when the synch thread is waking up, to write
the modified data.
|
void |
updateCache(org.apache.directory.server.core.api.interceptor.context.OperationContext opCtx) |
add, addAliasIndices, addIndex, addIndexedAttributes, buildEntryDn, count, delete, delete, dropAliasIndices, dropMovedAliasIndices, dumpIndex, dumpRdnIdx, fetch, fetch, getAdministrativeRoleIndex, getAliasCache, getAliasIndex, getCacheSize, getChildCount, getContextCsn, getEntryCsnIndex, getEntryDn, getEntryId, getIndex, getIndexedAttributes, getMasterTable, getObjectClassIndex, getOneAliasIndex, getOptimizer, getParentId, getPartitionPath, getPresenceIndex, getRdnIndex, getReadWriteLock, getSearchEngine, getSubAliasIndex, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, isSyncOnWrite, loadContextCsn, lookup, modify, modify, move, move, moveAndRename, moveAndRename, rename, rename, saveContextCsn, search, setCacheSize, setIndexedAttributes, setOptimizer, setOptimizerEnabled, setPartitionPath, setSearchEngine, setSyncOnWrite, setupSystemIndices, setupUserIndices, toString, unbind, updateRdnIdxpublic JdbmPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
org.apache.directory.server.core.api.DnFactory dnFactory)
protected void doInit()
throws Exception
doInit in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionExceptionpublic String getDefaultId()
public String getRootId()
public void sync()
throws Exception
Exception - on failures to sync database files to diskprotected org.apache.directory.server.xdbm.Index<?,String> convertAndInit(org.apache.directory.server.xdbm.Index<?,String> index) throws Exception
convertAndInit in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionExceptionprotected void doDestroy()
throws Exception
doDestroy in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionExceptionprotected final org.apache.directory.server.xdbm.Index createSystemIndex(String oid, URI path, boolean withReverse) throws Exception
createSystemIndex in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionExceptionpublic void updateCache(org.apache.directory.server.core.api.interceptor.context.OperationContext opCtx)
updateCache in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionpublic org.apache.directory.api.ldap.model.entry.Entry lookupCache(String id)
lookupCache in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionpublic void addToCache(String id, org.apache.directory.api.ldap.model.entry.Entry entry)
addToCache in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.