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

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

public class LdifPartitionFactory
extends java.lang.Object
implements PartitionFactory

A factory used to generate LdifPartitions.

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

Constructor Summary
LdifPartitionFactory()
           
 
Method Summary
 void addIndex(Partition partition, java.lang.String attributeId, int cacheSize)
          Adds a partition-specific index to the partition.
 LdifPartition 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

LdifPartitionFactory

public LdifPartitionFactory()
Method Detail

createPartition

public LdifPartition 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.