public class JdbmPartition extends org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition
Partition that stores entries in
JDBM database.ADD_CHILD, administrativeRoleAT, adminRoleIdx, aliasCache, aliasedObjectNameAT, aliasIdx, cacheSize, contextCsnAT, DEFAULT_CACHE_SIZE, entryCsnAT, entryCsnIdx, entryDnAT, entryUuidAT, isSyncOnWrite, master, objectClassAT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceAT, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndicescontextEntry, 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) |
org.apache.directory.server.core.api.partition.PartitionReadTxn |
beginReadTransaction() |
org.apache.directory.server.core.api.partition.PartitionWriteTxn |
beginWriteTransaction() |
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(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn) |
protected void |
doInit() |
protected void |
doRepair() |
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, getSubordinates, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, isSyncOnWrite, loadContextCsn, lookup, modify, modify, move, move, moveAndRename, moveAndRename, rename, rename, repair, 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)
schemaManager - The SchemaManager instancednFactory - The DN factory instanceprotected void doRepair() throws org.apache.directory.api.ldap.model.exception.LdapException
doRepair in class org.apache.directory.server.core.api.partition.AbstractPartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionprotected void doInit() throws org.apache.directory.api.ldap.model.exception.LdapException
doInit in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic String getDefaultId()
public void sync() throws org.apache.directory.api.ldap.model.exception.LdapException
sync in interface org.apache.directory.server.core.api.partition.Partitionsync in class org.apache.directory.server.core.api.partition.AbstractPartitionorg.apache.directory.api.ldap.model.exception.LdapException - 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 org.apache.directory.api.ldap.model.exception.LdapException
convertAndInit in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionprotected void doDestroy(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn) throws org.apache.directory.api.ldap.model.exception.LdapException
doDestroy in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionprotected final org.apache.directory.server.xdbm.Index createSystemIndex(String oid, URI path, boolean withReverse) throws org.apache.directory.api.ldap.model.exception.LdapException
createSystemIndex in class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic 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.AbstractBTreePartitionpublic org.apache.directory.server.core.api.partition.PartitionReadTxn beginReadTransaction()
public org.apache.directory.server.core.api.partition.PartitionWriteTxn beginWriteTransaction()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.