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

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

public class JdbmPartitionFactory
extends java.lang.Object
implements PartitionFactory

A factory used to generate JdbmPartitions.

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

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

JdbmPartitionFactory

public JdbmPartitionFactory()
Method Detail

createPartition

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