|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore<E>
public class JdbmStore<E>
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.server.xdbm.Store |
|---|
ALIAS, NDN, ONEALIAS, ONELEVEL, PRESENCE, SUBALIAS, SUBLEVEL, UPDN |
| Constructor Summary | |
|---|---|
JdbmStore()
Creates a store based on JDBM B+Trees. |
|
| Method Summary | |
|---|---|
void |
add(org.apache.directory.shared.ldap.name.LdapDN normName,
ServerEntry entry)
|
void |
addIndex(Index<?,E> index)
|
int |
count()
|
void |
delete(java.lang.Long id)
|
void |
destroy()
Close the parttion : we have to close all the userIndices and the master table. |
Index<java.lang.String,E> |
getAliasIndex()
|
int |
getCacheSize()
|
int |
getChildCount(java.lang.Long id)
|
java.lang.String |
getEntryDn(java.lang.Long id)
|
java.lang.Long |
getEntryId(java.lang.String dn)
|
java.lang.String |
getEntryUpdn(java.lang.Long id)
|
java.lang.String |
getEntryUpdn(java.lang.String dn)
|
java.lang.String |
getName()
|
Index<java.lang.String,E> |
getNdnIndex()
|
Index<java.lang.Long,E> |
getOneAliasIndex()
|
Index<java.lang.Long,E> |
getOneLevelIndex()
|
java.lang.Long |
getParentId(java.lang.Long childId)
|
java.lang.Long |
getParentId(java.lang.String dn)
Gets the Long id of an entry's parent using the child entry's normalized DN. |
Index<java.lang.String,E> |
getPresenceIndex()
|
java.lang.String |
getProperty(java.lang.String propertyName)
|
Index<java.lang.Long,E> |
getSubAliasIndex()
|
Index<java.lang.Long,E> |
getSubLevelIndex()
|
org.apache.directory.shared.ldap.name.LdapDN |
getSuffix()
|
java.lang.String |
getSuffixDn()
|
Index<?,E> |
getSystemIndex(java.lang.String id)
|
Index<java.lang.String,E> |
getUpdnIndex()
|
org.apache.directory.shared.ldap.name.LdapDN |
getUpSuffix()
|
Index<?,E> |
getUserIndex(java.lang.String id)
|
java.util.Set<Index<?,E>> |
getUserIndices()
|
java.io.File |
getWorkingDirectory()
|
boolean |
hasSystemIndexOn(java.lang.String id)
|
boolean |
hasUserIndexOn(java.lang.String id)
|
void |
init(Registries registries)
Initialize the JDBM storage system. |
void |
initRegistries(Registries registries)
|
boolean |
isInitialized()
Gets whether the store is initialized. |
boolean |
isSyncOnWrite()
|
IndexCursor<java.lang.Long,E> |
list(java.lang.Long id)
Gets an IndexEntry Cursor over the child nodes of an entry. |
ServerEntry |
lookup(java.lang.Long id)
|
void |
modify(org.apache.directory.shared.ldap.name.LdapDN dn,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods)
|
void |
modify(org.apache.directory.shared.ldap.name.LdapDN dn,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
ServerEntry mods)
|
void |
move(org.apache.directory.shared.ldap.name.LdapDN oldChildDn,
org.apache.directory.shared.ldap.name.LdapDN newParentDn)
|
void |
move(org.apache.directory.shared.ldap.name.LdapDN oldChildDn,
org.apache.directory.shared.ldap.name.LdapDN newParentDn,
org.apache.directory.shared.ldap.name.Rdn newRdn,
boolean deleteOldRdn)
|
void |
rename(org.apache.directory.shared.ldap.name.LdapDN dn,
org.apache.directory.shared.ldap.name.Rdn newRdn,
boolean deleteOldRdn)
Changes the relative distinguished name of an entry specified by a distinguished name with the optional removal of the old Rdn attribute value from the entry. |
void |
setAliasIndex(Index<java.lang.String,E> index)
|
void |
setCacheSize(int cacheSize)
|
void |
setName(java.lang.String name)
|
void |
setNdnIndex(Index<java.lang.String,E> index)
|
void |
setOneAliasIndex(Index<java.lang.Long,E> index)
|
void |
setOneLevelIndex(Index<java.lang.Long,E> index)
|
void |
setPresenceIndex(Index<java.lang.String,E> index)
|
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
|
void |
setSubAliasIndex(Index<java.lang.Long,E> index)
|
void |
setSubLevelIndex(Index<java.lang.Long,E> index)
|
void |
setSuffixDn(java.lang.String suffixDn)
|
void |
setSyncOnWrite(boolean isSyncOnWrite)
|
void |
setUpdnIndex(Index<java.lang.String,E> index)
|
void |
setUserIndices(java.util.Set<Index<?,E>> userIndices)
|
void |
setWorkingDirectory(java.io.File workingDirectory)
|
void |
sync()
This method is called when the synch thread is waking up, to write the modified data. |
java.util.Iterator<java.lang.String> |
systemIndices()
|
java.util.Iterator<java.lang.String> |
userIndices()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbmStore()
| Method Detail |
|---|
public void setWorkingDirectory(java.io.File workingDirectory)
setWorkingDirectory in interface Store<E>public java.io.File getWorkingDirectory()
getWorkingDirectory in interface Store<E>public void setSuffixDn(java.lang.String suffixDn)
setSuffixDn in interface Store<E>public java.lang.String getSuffixDn()
getSuffixDn in interface Store<E>public void setSyncOnWrite(boolean isSyncOnWrite)
setSyncOnWrite in interface Store<E>public boolean isSyncOnWrite()
isSyncOnWrite in interface Store<E>public void setCacheSize(int cacheSize)
setCacheSize in interface Store<E>public int getCacheSize()
getCacheSize in interface Store<E>public void setName(java.lang.String name)
setName in interface Store<E>public java.lang.String getName()
getName in interface Store<E>
public void init(Registries registries)
throws java.lang.Exception
init in interface Store<E>registries - the schema registries
java.lang.Exception - on failure to lookup elements in registries or create database files
public void destroy()
throws java.lang.Exception
destroy in interface Store<E>java.lang.Exception - lazily thrown on any closer failures to avoid leaving
open filespublic boolean isInitialized()
isInitialized in interface Store<E>
public void sync()
throws java.lang.Exception
sync in interface Store<E>java.lang.Exception - on failures to sync database files to diskpublic void setUserIndices(java.util.Set<Index<?,E>> userIndices)
setUserIndices in interface Store<E>public java.util.Set<Index<?,E>> getUserIndices()
getUserIndices in interface Store<E>
public void addIndex(Index<?,E> index)
throws java.lang.Exception
addIndex in interface Store<E>java.lang.Exceptionpublic Index<java.lang.String,E> getPresenceIndex()
getPresenceIndex in interface Store<E>
public void setPresenceIndex(Index<java.lang.String,E> index)
throws java.lang.Exception
setPresenceIndex in interface Store<E>java.lang.Exceptionpublic Index<java.lang.Long,E> getOneLevelIndex()
getOneLevelIndex in interface Store<E>
public void setOneLevelIndex(Index<java.lang.Long,E> index)
throws java.lang.Exception
setOneLevelIndex in interface Store<E>java.lang.Exceptionpublic Index<java.lang.String,E> getAliasIndex()
getAliasIndex in interface Store<E>
public void setAliasIndex(Index<java.lang.String,E> index)
throws javax.naming.NamingException
setAliasIndex in interface Store<E>javax.naming.NamingExceptionpublic Index<java.lang.Long,E> getOneAliasIndex()
getOneAliasIndex in interface Store<E>
public void setOneAliasIndex(Index<java.lang.Long,E> index)
throws javax.naming.NamingException
setOneAliasIndex in interface Store<E>javax.naming.NamingExceptionpublic Index<java.lang.Long,E> getSubAliasIndex()
getSubAliasIndex in interface Store<E>
public void setSubAliasIndex(Index<java.lang.Long,E> index)
throws javax.naming.NamingException
setSubAliasIndex in interface Store<E>javax.naming.NamingExceptionpublic Index<java.lang.String,E> getUpdnIndex()
getUpdnIndex in interface Store<E>
public void setUpdnIndex(Index<java.lang.String,E> index)
throws javax.naming.NamingException
setUpdnIndex in interface Store<E>javax.naming.NamingExceptionpublic Index<java.lang.String,E> getNdnIndex()
getNdnIndex in interface Store<E>
public void setNdnIndex(Index<java.lang.String,E> index)
throws javax.naming.NamingException
setNdnIndex in interface Store<E>javax.naming.NamingExceptionpublic Index<java.lang.Long,E> getSubLevelIndex()
getSubLevelIndex in interface Store<E>
public void setSubLevelIndex(Index<java.lang.Long,E> index)
throws javax.naming.NamingException
setSubLevelIndex in interface Store<E>javax.naming.NamingExceptionpublic java.util.Iterator<java.lang.String> userIndices()
userIndices in interface Store<E>public java.util.Iterator<java.lang.String> systemIndices()
systemIndices in interface Store<E>
public boolean hasUserIndexOn(java.lang.String id)
throws javax.naming.NamingException
hasUserIndexOn in interface Store<E>javax.naming.NamingException
public boolean hasSystemIndexOn(java.lang.String id)
throws javax.naming.NamingException
hasSystemIndexOn in interface Store<E>javax.naming.NamingException
public Index<?,E> getUserIndex(java.lang.String id)
throws IndexNotFoundException
getUserIndex in interface Store<E>IndexNotFoundException
public Index<?,E> getSystemIndex(java.lang.String id)
throws IndexNotFoundException
getSystemIndex in interface Store<E>IndexNotFoundException
public java.lang.Long getEntryId(java.lang.String dn)
throws java.lang.Exception
getEntryId in interface Store<E>java.lang.Exception
public java.lang.String getEntryDn(java.lang.Long id)
throws java.lang.Exception
getEntryDn in interface Store<E>java.lang.Exception
public java.lang.Long getParentId(java.lang.String dn)
throws java.lang.Exception
getParentId in interface Store<E>dn - the normalized distinguished name of the child
java.lang.Exception - on failures to access the underlying store
public java.lang.Long getParentId(java.lang.Long childId)
throws java.lang.Exception
getParentId in interface Store<E>java.lang.Exception
public java.lang.String getEntryUpdn(java.lang.Long id)
throws java.lang.Exception
getEntryUpdn in interface Store<E>java.lang.Exception
public java.lang.String getEntryUpdn(java.lang.String dn)
throws java.lang.Exception
getEntryUpdn in interface Store<E>java.lang.Exception
public int count()
throws java.lang.Exception
count in interface Store<E>java.lang.Exception
public void add(org.apache.directory.shared.ldap.name.LdapDN normName,
ServerEntry entry)
throws java.lang.Exception
add in interface Store<E>java.lang.Exception
public ServerEntry lookup(java.lang.Long id)
throws java.lang.Exception
lookup in interface Store<E>java.lang.Exception
public void delete(java.lang.Long id)
throws java.lang.Exception
delete in interface Store<E>java.lang.Exception
public IndexCursor<java.lang.Long,E> list(java.lang.Long id)
throws java.lang.Exception
list in interface Store<E>id - the id of the parent entry
java.lang.Exception - on failures to access the underlying store
public int getChildCount(java.lang.Long id)
throws java.lang.Exception
getChildCount in interface Store<E>java.lang.Exceptionpublic org.apache.directory.shared.ldap.name.LdapDN getSuffix()
getSuffix in interface Store<E>public org.apache.directory.shared.ldap.name.LdapDN getUpSuffix()
getUpSuffix in interface Store<E>
public void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws java.lang.Exception
setProperty in interface Store<E>java.lang.Exception
public java.lang.String getProperty(java.lang.String propertyName)
throws java.lang.Exception
getProperty in interface Store<E>java.lang.Exception
public void modify(org.apache.directory.shared.ldap.name.LdapDN dn,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
ServerEntry mods)
throws java.lang.Exception
modify in interface Store<E>java.lang.Exception
public void modify(org.apache.directory.shared.ldap.name.LdapDN dn,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods)
throws java.lang.Exception
modify in interface Store<E>java.lang.Exception
public void rename(org.apache.directory.shared.ldap.name.LdapDN dn,
org.apache.directory.shared.ldap.name.Rdn newRdn,
boolean deleteOldRdn)
throws java.lang.Exception
rename in interface Store<E>dn - the normalized distinguished name of the entry to alternewRdn - the new Rdn to setdeleteOldRdn - whether or not to remove the old Rdn attr/val
java.lang.Exception - if there are any errors propagating the name changes
public void move(org.apache.directory.shared.ldap.name.LdapDN oldChildDn,
org.apache.directory.shared.ldap.name.LdapDN newParentDn,
org.apache.directory.shared.ldap.name.Rdn newRdn,
boolean deleteOldRdn)
throws java.lang.Exception
move in interface Store<E>java.lang.Exception
public void move(org.apache.directory.shared.ldap.name.LdapDN oldChildDn,
org.apache.directory.shared.ldap.name.LdapDN newParentDn)
throws java.lang.Exception
move in interface Store<E>java.lang.Exceptionpublic void initRegistries(Registries registries)
initRegistries in interface Store<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||