You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2011/07/11 15:02:01 UTC
svn commit: r1145159 - in /directory/apacheds/trunk:
core-annotations/src/main/java/org/apache/directory/server/core/factory/
ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/
server-config/src/main/java/org/apache/directory...
Author: elecharny
Date: Mon Jul 11 13:02:00 2011
New Revision: 1145159
URL: http://svn.apache.org/viewvc?rev=1145159&view=rev
Log:
o Renamed the BTreePartition to AbstractBTreePartition
o Impacted the code that used this class
o Removed the duplicatd SchemaManager injection into the embedded Partition
o Added a AvlStrore constructor
Added:
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
- copied, changed from r1145126, directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java
Removed:
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java
Modified:
directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/AbstractLdifPartition.java
directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/ServerEntryCursorAdaptor.java
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlStore.java
directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java
directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java
directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java
Modified: directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java (original)
+++ directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java Mon Jul 11 13:02:00 2011
@@ -40,7 +40,7 @@ import org.apache.directory.server.core.
import org.apache.directory.server.core.authn.DelegatingAuthenticator;
import org.apache.directory.server.core.interceptor.Interceptor;
import org.apache.directory.server.core.partition.Partition;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
import org.apache.directory.server.i18n.I18n;
import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
@@ -159,9 +159,9 @@ public class DSAnnotationProcessor
partition.setId( createPartition.name() );
partition.setSuffix( new Dn( service.getSchemaManager(), createPartition.suffix() ) );
- if ( partition instanceof BTreePartition<?> )
+ if ( partition instanceof AbstractBTreePartition<?> )
{
- BTreePartition<?> btreePartition = ( BTreePartition<?> ) partition;
+ AbstractBTreePartition<?> btreePartition = ( AbstractBTreePartition<?> ) partition;
btreePartition.setCacheSize( createPartition.cacheSize() );
btreePartition.setPartitionPath( new File( service
.getInstanceLayout().getPartitionsDirectory(),
Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/AbstractLdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/AbstractLdifPartition.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/AbstractLdifPartition.java (original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/AbstractLdifPartition.java Mon Jul 11 13:02:00 2011
@@ -26,7 +26,7 @@ import java.util.Iterator;
import org.apache.directory.server.core.interceptor.context.UnbindOperationContext;
import org.apache.directory.server.core.partition.Partition;
import org.apache.directory.server.core.partition.impl.avl.AvlPartition;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.xdbm.Index;
import org.apache.directory.server.xdbm.IndexCursor;
import org.apache.directory.shared.ldap.model.csn.CsnFactory;
@@ -43,7 +43,7 @@ import org.apache.directory.shared.ldap.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
-public abstract class AbstractLdifPartition extends BTreePartition<Long>
+public abstract class AbstractLdifPartition extends AbstractBTreePartition<Long>
{
/** We use a partition to manage searches on this partition */
protected AvlPartition wrappedPartition;
Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java (original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java Mon Jul 11 13:02:00 2011
@@ -136,7 +136,6 @@ public class LdifPartition extends Abstr
// Initialize the AvlPartition
wrappedPartition.setId( id );
wrappedPartition.setSuffix( suffix );
- wrappedPartition.setSchemaManager( schemaManager );
wrappedPartition.initialize();
this.searchEngine = wrappedPartition.getSearchEngine();
Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java (original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java Mon Jul 11 13:02:00 2011
@@ -39,7 +39,7 @@ import javax.naming.directory.SearchCont
import org.apache.directory.server.config.beans.AdsBaseBean;
import org.apache.directory.server.config.beans.ConfigBean;
import org.apache.directory.server.config.beans.ReplConsumerBean;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.i18n.I18n;
import org.apache.directory.server.xdbm.ForwardIndexEntry;
import org.apache.directory.server.xdbm.IndexCursor;
@@ -75,7 +75,7 @@ public class ConfigPartitionReader
private static final Logger LOG = LoggerFactory.getLogger( ConfigPartitionReader.class );
/** the partition which holds the configuration data */
- private BTreePartition<Long> configPartition;
+ private AbstractBTreePartition<Long> configPartition;
/** the search engine of the partition */
private SearchEngine<Entry, Long> se;
@@ -100,7 +100,7 @@ public class ConfigPartitionReader
*
* @param configPartition the non null config partition
*/
- public ConfigPartitionReader( BTreePartition<Long> configPartition )
+ public ConfigPartitionReader( AbstractBTreePartition<Long> configPartition )
{
if ( configPartition == null )
{
Modified: directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java (original)
+++ directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java Mon Jul 11 13:02:00 2011
@@ -38,7 +38,7 @@ import org.apache.directory.server.core.
import org.apache.directory.server.core.DirectoryService;
import org.apache.directory.server.core.entry.ClonedServerEntry;
import org.apache.directory.server.core.partition.Partition;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.core.partition.ldif.LdifPartition;
import org.apache.directory.server.core.schema.SchemaPartition;
import org.apache.directory.server.i18n.I18n;
@@ -132,10 +132,10 @@ public class ApacheDS
for( Partition p : partitions )
{
- if( p instanceof BTreePartition )
+ if( p instanceof AbstractBTreePartition )
{
File partitionPath = new File( directoryService.getInstanceLayout().getPartitionsDirectory(), p.getId() );
- ( ( BTreePartition ) p ).setPartitionPath( partitionPath.toURI() );
+ ( ( AbstractBTreePartition ) p ).setPartitionPath( partitionPath.toURI() );
}
if( p.getSchemaManager() == null )
@@ -147,10 +147,10 @@ public class ApacheDS
Partition sysPartition = directoryService.getSystemPartition();
- if( sysPartition instanceof BTreePartition )
+ if( sysPartition instanceof AbstractBTreePartition )
{
File partitionPath = new File( directoryService.getInstanceLayout().getPartitionsDirectory(), sysPartition.getId() );
- ( ( BTreePartition ) sysPartition ).setPartitionPath( partitionPath.toURI() );
+ ( ( AbstractBTreePartition ) sysPartition ).setPartitionPath( partitionPath.toURI() );
}
if( sysPartition.getSchemaManager() == null )
Copied: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java (from r1145126, directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java)
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java?p2=directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java&p1=directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java&r1=1145126&r2=1145159&rev=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java Mon Jul 11 13:02:00 2011
@@ -65,7 +65,7 @@ import org.apache.directory.shared.ldap.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
-public abstract class BTreePartition<ID> extends AbstractPartition
+public abstract class AbstractBTreePartition<ID> extends AbstractPartition
{
/** the search engine used to search the database */
@@ -96,7 +96,7 @@ public abstract class BTreePartition<ID>
/**
* Creates a B-tree based context partition.
*/
- protected BTreePartition()
+ protected AbstractBTreePartition()
{
indexedAttributes = new HashSet<Index<?, Entry, ID>>();
}
Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/ServerEntryCursorAdaptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/ServerEntryCursorAdaptor.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/ServerEntryCursorAdaptor.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/ServerEntryCursorAdaptor.java Mon Jul 11 13:02:00 2011
@@ -38,11 +38,11 @@ import org.apache.directory.shared.ldap.
*/
public class ServerEntryCursorAdaptor<ID> implements Cursor<Entry>
{
- private final BTreePartition<ID> db;
+ private final AbstractBTreePartition<ID> db;
private final IndexCursor<ID, Entry, ID> indexCursor;
- public ServerEntryCursorAdaptor( BTreePartition<ID> db, IndexCursor<ID, Entry, ID> indexCursor )
+ public ServerEntryCursorAdaptor( AbstractBTreePartition<ID> db, IndexCursor<ID, Entry, ID> indexCursor )
{
this.db = db;
this.indexCursor = indexCursor;
Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java Mon Jul 11 13:02:00 2011
@@ -31,7 +31,7 @@ import org.apache.directory.server.core.
import org.apache.directory.server.core.interceptor.context.MoveOperationContext;
import org.apache.directory.server.core.interceptor.context.RenameOperationContext;
import org.apache.directory.server.core.interceptor.context.UnbindOperationContext;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.i18n.I18n;
import org.apache.directory.server.xdbm.Index;
import org.apache.directory.server.xdbm.IndexCursor;
@@ -55,7 +55,7 @@ import org.apache.directory.shared.ldap.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
-public abstract class AbstractXdbmPartition<ID extends Comparable<ID>> extends BTreePartition<ID>
+public abstract class AbstractXdbmPartition<ID extends Comparable<ID>> extends AbstractBTreePartition<ID>
{
protected boolean optimizerEnabled = true;
Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java Mon Jul 11 13:02:00 2011
@@ -138,14 +138,6 @@ public abstract class AbstractStore<E, I
protected Index<ParentIdAndRdn<ID>, E, ID> rdnIdx;
/**
- * a flag to enable/disable hasEntry() check before adding the entry
- * Note: This kind of check is already present in ExceptionInterceptor's
- * add() method. This flag needs to be enabled only in cases where interceptor chain
- * is not used or not yet effective at the time of adding entries into this store.
- */
- private boolean checkHasEntryDuringAdd = false;
-
- /**
* {@inheritDoc}
*/
public void init( SchemaManager schemaManager ) throws Exception
Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlStore.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlStore.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlStore.java Mon Jul 11 13:02:00 2011
@@ -47,6 +47,13 @@ public class AvlStore<E> extends Abstrac
private static final Logger LOG = LoggerFactory.getLogger( AvlStore.class );
/**
+ * Creates a store based on AVL Trees.
+ */
+ public AvlStore()
+ {
+ }
+
+ /**
* {@inheritDoc}
* TODO why this and initRegistries on Store interface ???
*/
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java Mon Jul 11 13:02:00 2011
@@ -29,7 +29,7 @@ import java.util.Map;
import javax.swing.tree.TreeNode;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.xdbm.ForwardIndexEntry;
import org.apache.directory.server.xdbm.IndexCursor;
import org.apache.directory.server.xdbm.IndexEntry;
@@ -47,20 +47,20 @@ import org.apache.directory.shared.ldap.
*/
public class EntryNode implements TreeNode
{
- private final BTreePartition partition;
+ private final AbstractBTreePartition partition;
private final EntryNode parent;
private final Entry entry;
private final ArrayList<TreeNode> children;
private final Long id;
- public EntryNode( Long id, EntryNode parent, BTreePartition partition, Entry entry, Map<Long, EntryNode> map )
+ public EntryNode( Long id, EntryNode parent, AbstractBTreePartition partition, Entry entry, Map<Long, EntryNode> map )
{
this( id, parent, partition, entry, map, null, null );
}
- public EntryNode( Long id, EntryNode parent, BTreePartition db, Entry entry, Map<Long, EntryNode> map,
+ public EntryNode( Long id, EntryNode parent, AbstractBTreePartition db, Entry entry, Map<Long, EntryNode> map,
ExprNode exprNode, SearchEngine engine )
{
this.partition = db;
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java Mon Jul 11 13:02:00 2011
@@ -60,7 +60,7 @@ import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
import org.apache.directory.server.core.interceptor.context.AddOperationContext;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.server.i18n.I18n;
import org.apache.directory.server.xdbm.Index;
import org.apache.directory.server.xdbm.IndexCursor;
@@ -111,7 +111,7 @@ public class PartitionFrame extends JFra
private JMenu indices = new JMenu();
// Non Swing Stuff
- private BTreePartition<Long> partition;
+ private AbstractBTreePartition<Long> partition;
private boolean doCleanUp;
private Map<Long, EntryNode> nodes;
private EntryNode root;
@@ -126,7 +126,7 @@ public class PartitionFrame extends JFra
* @param db the partition to view
* @throws NamingException if there are problems accessing the partition
*/
- public PartitionFrame( BTreePartition<Long> db, SchemaManager schemaManager ) throws Exception
+ public PartitionFrame( AbstractBTreePartition<Long> db, SchemaManager schemaManager ) throws Exception
{
partition = db;
this.schemaManager = schemaManager;
@@ -814,7 +814,7 @@ public class PartitionFrame extends JFra
}
- public void buildIndicesMenu( BTreePartition partition )
+ public void buildIndicesMenu( AbstractBTreePartition partition )
{
JMenuItem item;
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java?rev=1145159&r1=1145158&r2=1145159&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java Mon Jul 11 13:02:00 2011
@@ -23,7 +23,7 @@ package org.apache.directory.server.core
import java.awt.Dimension;
import java.awt.Toolkit;
-import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
+import org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition;
import org.apache.directory.shared.ldap.model.schema.SchemaManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -39,13 +39,13 @@ public class PartitionViewer
private static final Logger LOG = LoggerFactory.getLogger( PartitionViewer.class );
/** A handle on the atomic partition */
- private BTreePartition partition;
+ private AbstractBTreePartition partition;
/** A handle on the global schemaManager */
private SchemaManager schemaManager;
- public PartitionViewer( BTreePartition db, SchemaManager schemaManager )
+ public PartitionViewer( AbstractBTreePartition db, SchemaManager schemaManager )
{
this.partition = db;
this.schemaManager = schemaManager;