org.apache.directory.server.core.factory
Class AvlPartitionFactory
java.lang.Object
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 AvlPartition
s.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
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 |
AvlPartitionFactory
public AvlPartitionFactory()
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 idsuffix
- the suffixcacheSize
- the cache sizeworkingDirectory
- 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 partitioncacheSize
- the cache size
- Throws:
java.lang.Exception
- the exception
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.