|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.server.core.partition.avl.AvlStore<E>
public class AvlStore<E>
A Store implementation backed by in memory AVL trees. TODO - this class is extremely like the JdbmStore implementation of the Store interface which tells us that it's best for us to have some kind of abstract class.
| Constructor Summary | |
|---|---|
AvlStore()
|
|
| Method Summary | |
|---|---|
void |
add(ServerEntry entry)
|
void |
addIndex(Index<? extends java.lang.Object,E,java.lang.Long> index)
|
int |
count()
|
void |
delete(java.lang.Long id)
|
void |
destroy()
|
Index<java.lang.String,E,java.lang.Long> |
getAliasIndex()
|
int |
getCacheSize()
always returns 0 (zero), cause this is a inmemory store |
int |
getChildCount(java.lang.Long id)
|
java.lang.Long |
getDefaultId()
|
Index<java.lang.String,E,java.lang.Long> |
getEntryCsnIndex()
|
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)
|
Index<java.lang.String,E,java.lang.Long> |
getEntryUuidIndex()
|
Index<?,E,java.lang.Long> |
getIndex(java.lang.String id)
|
java.lang.String |
getName()
|
Index<java.lang.String,E,java.lang.Long> |
getNdnIndex()
|
Index<java.lang.String,E,java.lang.Long> |
getObjectClassIndex()
|
Index<java.lang.Long,E,java.lang.Long> |
getOneAliasIndex()
|
Index<java.lang.Long,E,java.lang.Long> |
getOneLevelIndex()
|
java.lang.Long |
getParentId(java.lang.Long childId)
|
java.lang.Long |
getParentId(java.lang.String dn)
|
Index<java.lang.String,E,java.lang.Long> |
getPresenceIndex()
|
java.lang.String |
getProperty(java.lang.String propertyName)
|
Index<java.lang.Long,E,java.lang.Long> |
getSubAliasIndex()
|
Index<java.lang.Long,E,java.lang.Long> |
getSubLevelIndex()
|
org.apache.directory.shared.ldap.name.DN |
getSuffix()
|
java.lang.String |
getSuffixDn()
|
Index<?,E,java.lang.Long> |
getSystemIndex(java.lang.String id)
|
Index<java.lang.String,E,java.lang.Long> |
getUpdnIndex()
|
org.apache.directory.shared.ldap.name.DN |
getUpSuffix()
|
Index<? extends java.lang.Object,E,java.lang.Long> |
getUserIndex(java.lang.String id)
|
java.util.Set<Index<? extends java.lang.Object,E,java.lang.Long>> |
getUserIndices()
|
java.io.File |
getWorkingDirectory()
|
boolean |
hasIndexOn(java.lang.String id)
|
boolean |
hasSystemIndexOn(java.lang.String id)
|
boolean |
hasUserIndexOn(java.lang.String id)
|
void |
init(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
TODO why this and initRegistries on Store interface ??? |
boolean |
isInitialized()
|
boolean |
isSyncOnWrite()
|
IndexCursor<java.lang.Long,E,java.lang.Long> |
list(java.lang.Long id)
|
ServerEntry |
lookup(java.lang.Long id)
|
void |
modify(org.apache.directory.shared.ldap.name.DN dn,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods)
|
void |
modify(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
ServerEntry mods)
|
void |
modify(long entryId,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods)
|
void |
move(org.apache.directory.shared.ldap.name.DN oldChildDn,
org.apache.directory.shared.ldap.name.DN newParentDn)
|
void |
move(org.apache.directory.shared.ldap.name.DN oldChildDn,
org.apache.directory.shared.ldap.name.DN newParentDn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
|
void |
rename(org.apache.directory.shared.ldap.name.DN 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,java.lang.Long> index)
|
void |
setCacheSize(int size)
|
void |
setEntryCsnIndex(Index<java.lang.String,E,java.lang.Long> index)
|
void |
setEntryUuidIndex(Index<java.lang.String,E,java.lang.Long> index)
|
void |
setName(java.lang.String name)
|
void |
setNdnIndex(Index<java.lang.String,E,java.lang.Long> index)
|
void |
setObjectClassIndex(Index<java.lang.String,E,java.lang.Long> index)
|
void |
setOneAliasIndex(Index<java.lang.Long,E,java.lang.Long> index)
|
void |
setOneLevelIndex(Index<java.lang.Long,E,java.lang.Long> index)
|
void |
setPresenceIndex(Index<java.lang.String,E,java.lang.Long> index)
|
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
|
void |
setSubAliasIndex(Index<java.lang.Long,E,java.lang.Long> index)
|
void |
setSubLevelIndex(Index<java.lang.Long,E,java.lang.Long> index)
|
void |
setSuffixDn(java.lang.String suffixDn)
|
void |
setSyncOnWrite(boolean sync)
|
void |
setUpdnIndex(Index<java.lang.String,E,java.lang.Long> index)
|
void |
setUserIndices(java.util.Set<Index<? extends java.lang.Object,E,java.lang.Long>> userIndices)
|
void |
setWorkingDirectory(java.io.File wkDir)
|
void |
sync()
|
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 AvlStore()
| Method Detail |
|---|
public void add(ServerEntry entry)
throws java.lang.Exception
add in interface Store<E,java.lang.Long>java.lang.Exception
public void addIndex(Index<? extends java.lang.Object,E,java.lang.Long> index)
throws java.lang.Exception
addIndex in interface Store<E,java.lang.Long>java.lang.Exception
public int count()
throws java.lang.Exception
count in interface Store<E,java.lang.Long>java.lang.Exception
public void delete(java.lang.Long id)
throws java.lang.Exception
delete in interface Store<E,java.lang.Long>java.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface Store<E,java.lang.Long>java.lang.Exceptionpublic Index<java.lang.String,E,java.lang.Long> getAliasIndex()
getAliasIndex in interface Store<E,java.lang.Long>
public int getChildCount(java.lang.Long id)
throws java.lang.Exception
getChildCount in interface Store<E,java.lang.Long>java.lang.Exception
public java.lang.String getEntryDn(java.lang.Long id)
throws java.lang.Exception
getEntryDn in interface Store<E,java.lang.Long>java.lang.Exception
public java.lang.Long getEntryId(java.lang.String dn)
throws java.lang.Exception
getEntryId in interface Store<E,java.lang.Long>java.lang.Exception
public java.lang.String getEntryUpdn(java.lang.Long id)
throws java.lang.Exception
getEntryUpdn in interface Store<E,java.lang.Long>java.lang.Exception
public java.lang.String getEntryUpdn(java.lang.String dn)
throws java.lang.Exception
getEntryUpdn in interface Store<E,java.lang.Long>java.lang.Exceptionpublic java.lang.String getName()
getName in interface Store<E,java.lang.Long>public Index<java.lang.String,E,java.lang.Long> getNdnIndex()
getNdnIndex in interface Store<E,java.lang.Long>public Index<java.lang.Long,E,java.lang.Long> getOneAliasIndex()
getOneAliasIndex in interface Store<E,java.lang.Long>public Index<java.lang.Long,E,java.lang.Long> getOneLevelIndex()
getOneLevelIndex in interface Store<E,java.lang.Long>
public java.lang.Long getParentId(java.lang.String dn)
throws java.lang.Exception
getParentId in interface Store<E,java.lang.Long>java.lang.Exception
public java.lang.Long getParentId(java.lang.Long childId)
throws java.lang.Exception
getParentId in interface Store<E,java.lang.Long>java.lang.Exceptionpublic Index<java.lang.String,E,java.lang.Long> getPresenceIndex()
getPresenceIndex in interface Store<E,java.lang.Long>
public java.lang.String getProperty(java.lang.String propertyName)
throws java.lang.Exception
getProperty in interface Store<E,java.lang.Long>java.lang.Exceptionpublic Index<java.lang.Long,E,java.lang.Long> getSubAliasIndex()
getSubAliasIndex in interface Store<E,java.lang.Long>public Index<java.lang.Long,E,java.lang.Long> getSubLevelIndex()
getSubLevelIndex in interface Store<E,java.lang.Long>public org.apache.directory.shared.ldap.name.DN getSuffix()
getSuffix in interface Store<E,java.lang.Long>public org.apache.directory.shared.ldap.name.DN getUpSuffix()
getUpSuffix in interface Store<E,java.lang.Long>public java.lang.String getSuffixDn()
getSuffixDn in interface Store<E,java.lang.Long>
public Index<?,E,java.lang.Long> getSystemIndex(java.lang.String id)
throws IndexNotFoundException
getSystemIndex in interface Store<E,java.lang.Long>IndexNotFoundException
public Index<?,E,java.lang.Long> getIndex(java.lang.String id)
throws IndexNotFoundException
getIndex in interface Store<E,java.lang.Long>IndexNotFoundExceptionpublic Index<java.lang.String,E,java.lang.Long> getUpdnIndex()
getUpdnIndex in interface Store<E,java.lang.Long>
public Index<? extends java.lang.Object,E,java.lang.Long> getUserIndex(java.lang.String id)
throws IndexNotFoundException
getUserIndex in interface Store<E,java.lang.Long>IndexNotFoundExceptionpublic java.util.Set<Index<? extends java.lang.Object,E,java.lang.Long>> getUserIndices()
getUserIndices in interface Store<E,java.lang.Long>
public boolean hasIndexOn(java.lang.String id)
throws java.lang.Exception
hasIndexOn in interface Store<E,java.lang.Long>java.lang.Exception
public boolean hasSystemIndexOn(java.lang.String id)
throws java.lang.Exception
hasSystemIndexOn in interface Store<E,java.lang.Long>java.lang.Exception
public boolean hasUserIndexOn(java.lang.String id)
throws java.lang.Exception
hasUserIndexOn in interface Store<E,java.lang.Long>java.lang.Exception
public void init(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
throws java.lang.Exception
init in interface Store<E,java.lang.Long>java.lang.Exceptionpublic boolean isInitialized()
isInitialized in interface Store<E,java.lang.Long>
public IndexCursor<java.lang.Long,E,java.lang.Long> list(java.lang.Long id)
throws java.lang.Exception
list in interface Store<E,java.lang.Long>java.lang.Exception
public ServerEntry lookup(java.lang.Long id)
throws java.lang.Exception
lookup in interface Store<E,java.lang.Long>java.lang.Exception
public void modify(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
ServerEntry mods)
throws java.lang.Exception
modify in interface Store<E,java.lang.Long>java.lang.Exception
public void modify(org.apache.directory.shared.ldap.name.DN dn,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods)
throws java.lang.Exception
modify in interface Store<E,java.lang.Long>java.lang.Exception
public void modify(long entryId,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods)
throws java.lang.Exception
java.lang.Exception
public void move(org.apache.directory.shared.ldap.name.DN oldChildDn,
org.apache.directory.shared.ldap.name.DN newParentDn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
throws java.lang.Exception
move in interface Store<E,java.lang.Long>java.lang.Exception
public void move(org.apache.directory.shared.ldap.name.DN oldChildDn,
org.apache.directory.shared.ldap.name.DN newParentDn)
throws java.lang.Exception
move in interface Store<E,java.lang.Long>java.lang.Exception
public void rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
throws java.lang.Exception
rename in interface Store<E,java.lang.Long>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 setAliasIndex(Index<java.lang.String,E,java.lang.Long> index)
throws java.lang.Exception
setAliasIndex in interface Store<E,java.lang.Long>java.lang.Exceptionpublic void setName(java.lang.String name)
setName in interface Store<E,java.lang.Long>
public void setNdnIndex(Index<java.lang.String,E,java.lang.Long> index)
throws java.lang.Exception
setNdnIndex in interface Store<E,java.lang.Long>java.lang.Exception
public void setOneAliasIndex(Index<java.lang.Long,E,java.lang.Long> index)
throws java.lang.Exception
setOneAliasIndex in interface Store<E,java.lang.Long>java.lang.Exception
public void setOneLevelIndex(Index<java.lang.Long,E,java.lang.Long> index)
throws java.lang.Exception
setOneLevelIndex in interface Store<E,java.lang.Long>java.lang.Exception
public void setPresenceIndex(Index<java.lang.String,E,java.lang.Long> index)
throws java.lang.Exception
setPresenceIndex in interface Store<E,java.lang.Long>java.lang.Exception
public void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws java.lang.Exception
setProperty in interface Store<E,java.lang.Long>java.lang.Exception
public void setSubAliasIndex(Index<java.lang.Long,E,java.lang.Long> index)
throws java.lang.Exception
setSubAliasIndex in interface Store<E,java.lang.Long>java.lang.Exception
public void setSubLevelIndex(Index<java.lang.Long,E,java.lang.Long> index)
throws java.lang.Exception
setSubLevelIndex in interface Store<E,java.lang.Long>java.lang.Exceptionpublic void setSuffixDn(java.lang.String suffixDn)
setSuffixDn in interface Store<E,java.lang.Long>
public void setUpdnIndex(Index<java.lang.String,E,java.lang.Long> index)
throws java.lang.Exception
setUpdnIndex in interface Store<E,java.lang.Long>java.lang.Exceptionpublic void setUserIndices(java.util.Set<Index<? extends java.lang.Object,E,java.lang.Long>> userIndices)
setUserIndices in interface Store<E,java.lang.Long>public java.util.Iterator<java.lang.String> systemIndices()
systemIndices in interface Store<E,java.lang.Long>public java.util.Iterator<java.lang.String> userIndices()
userIndices in interface Store<E,java.lang.Long>public int getCacheSize()
getCacheSize in interface Store<E,java.lang.Long>public Index<java.lang.String,E,java.lang.Long> getEntryCsnIndex()
getEntryCsnIndex in interface Store<E,java.lang.Long>public Index<java.lang.String,E,java.lang.Long> getEntryUuidIndex()
getEntryUuidIndex in interface Store<E,java.lang.Long>public Index<java.lang.String,E,java.lang.Long> getObjectClassIndex()
getObjectClassIndex in interface Store<E,java.lang.Long>
public void setEntryCsnIndex(Index<java.lang.String,E,java.lang.Long> index)
throws java.lang.Exception
setEntryCsnIndex in interface Store<E,java.lang.Long>java.lang.Exceptionpublic void setSyncOnWrite(boolean sync)
setSyncOnWrite in interface Store<E,java.lang.Long>public void setWorkingDirectory(java.io.File wkDir)
setWorkingDirectory in interface Store<E,java.lang.Long>public java.io.File getWorkingDirectory()
getWorkingDirectory in interface Store<E,java.lang.Long>public boolean isSyncOnWrite()
isSyncOnWrite in interface Store<E,java.lang.Long>public void setCacheSize(int size)
setCacheSize in interface Store<E,java.lang.Long>
public void setObjectClassIndex(Index<java.lang.String,E,java.lang.Long> index)
throws javax.naming.NamingException
setObjectClassIndex in interface Store<E,java.lang.Long>javax.naming.NamingException
public void setEntryUuidIndex(Index<java.lang.String,E,java.lang.Long> index)
throws javax.naming.NamingException
setEntryUuidIndex in interface Store<E,java.lang.Long>javax.naming.NamingException
public void sync()
throws java.lang.Exception
sync in interface Store<E,java.lang.Long>java.lang.Exceptionpublic java.lang.Long getDefaultId()
getDefaultId in interface Store<E,java.lang.Long>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||