org.apache.directory.server.core.factory
Class AvlPartitionFactory

java.lang.Object
  extended by org.apache.directory.server.core.factory.AvlPartitionFactory
All Implemented Interfaces:
PartitionFactory

public class AvlPartitionFactory
extends java.lang.Object
implements PartitionFactory

A factory used to generate AvlPartitions.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
AvlPartitionFactory()
           
 
Method Summary
 void addIndex(Partition partition, java.lang.String attributeId, int cacheSize)
          Adds a partition-specific index to the partition.
 AvlPartition createPartition(java.lang.String id, java.lang.String suffix, int cacheSize, java.io.File workingDirectory)
          Creates a new Partition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvlPartitionFactory

public AvlPartitionFactory()
Method Detail

createPartition

public AvlPartition createPartition(java.lang.String id,
                                    java.lang.String suffix,
                                    int cacheSize,
                                    java.io.File workingDirectory)
                             throws java.lang.Exception
Creates a new Partition.

Specified by:
createPartition in interface PartitionFactory
Parameters:
id - the partition id
suffix - the suffix
cacheSize - the cache size
workingDirectory - the working directory
Returns:
the partition
Throws:
java.lang.Exception - the exception

addIndex

public void addIndex(Partition partition,
                     java.lang.String attributeId,
                     int cacheSize)
              throws java.lang.Exception
Adds a partition-specific index to the partition.

Specified by:
addIndex in interface PartitionFactory
Parameters:
partition - the partition
cacheSize - the cache size
Throws:
java.lang.Exception - the exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.