org.apache.directory.server.core.partition.impl.btree
Class MutableBTreePartitionConfiguration

java.lang.Object
  extended by org.apache.directory.server.core.configuration.PartitionConfiguration
      extended by org.apache.directory.server.core.partition.impl.btree.BTreePartitionConfiguration
          extended by org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration

public class MutableBTreePartitionConfiguration
extends BTreePartitionConfiguration

A mutable form of BTreePartitionConfiguration.

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

Field Summary
 
Fields inherited from class org.apache.directory.server.core.configuration.PartitionConfiguration
DEFAULT_CACHE_SIZE, SYSTEM_PARTITION_NAME
 
Constructor Summary
MutableBTreePartitionConfiguration()
           
 
Method Summary
static MutableBTreePartitionConfiguration getConfiguration(PartitionConfiguration config)
           
 void setCacheSize(int cacheSize)
          Used to specify the entry cache size for a partition.
 void setContextEntry(javax.naming.directory.Attributes rootEntry)
          Sets root entry that will be added to the Partition after it is initialized.
 void setContextPartition(Partition partition)
          Sets the Partition that this configuration configures.
 void setIndexedAttributes(java.util.Set indexedAttributes)
          Sets the set of attribute type strings to create an index on.
 void setName(java.lang.String name)
          Sets user-defined name of the Partition that this configuration configures.
 void setOptimizerEnabled(boolean optimizerEnabled)
           
 void setSuffix(java.lang.String suffix)
          Sets the suffix of the Partition.
 void setSynchOnWrite(boolean synchOnWrite)
           
 
Methods inherited from class org.apache.directory.server.core.partition.impl.btree.BTreePartitionConfiguration
convert, isOptimizerEnabled, isSynchOnWrite
 
Methods inherited from class org.apache.directory.server.core.configuration.PartitionConfiguration
getCacheSize, getContextEntry, getContextPartition, getIndexedAttributes, getName, getNormalizedSuffix, getNormalizedSuffix, getSuffix, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableBTreePartitionConfiguration

public MutableBTreePartitionConfiguration()
Method Detail

setSynchOnWrite

public void setSynchOnWrite(boolean synchOnWrite)
Overrides:
setSynchOnWrite in class BTreePartitionConfiguration

setName

public void setName(java.lang.String name)
Description copied from class: PartitionConfiguration
Sets user-defined name of the Partition that this configuration configures.

Overrides:
setName in class PartitionConfiguration

setIndexedAttributes

public void setIndexedAttributes(java.util.Set indexedAttributes)
Description copied from class: PartitionConfiguration
Sets the set of attribute type strings to create an index on.

Overrides:
setIndexedAttributes in class PartitionConfiguration

setContextPartition

public void setContextPartition(Partition partition)
Description copied from class: PartitionConfiguration
Sets the Partition that this configuration configures.

Overrides:
setContextPartition in class PartitionConfiguration

setContextEntry

public void setContextEntry(javax.naming.directory.Attributes rootEntry)
Description copied from class: PartitionConfiguration
Sets root entry that will be added to the Partition after it is initialized.

Overrides:
setContextEntry in class PartitionConfiguration

setSuffix

public void setSuffix(java.lang.String suffix)
               throws javax.naming.NamingException
Description copied from class: PartitionConfiguration
Sets the suffix of the Partition.

Overrides:
setSuffix in class PartitionConfiguration
Throws:
javax.naming.NamingException

setCacheSize

public void setCacheSize(int cacheSize)
Description copied from class: PartitionConfiguration
Used to specify the entry cache size for a partition. Various partition implementations may interpret this value in different ways: i.e. total cache size limit verses the number of entries to cache.

Overrides:
setCacheSize in class PartitionConfiguration
Parameters:
cacheSize - the size of the cache

setOptimizerEnabled

public void setOptimizerEnabled(boolean optimizerEnabled)
Overrides:
setOptimizerEnabled in class BTreePartitionConfiguration

getConfiguration

public static MutableBTreePartitionConfiguration getConfiguration(PartitionConfiguration config)
                                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException


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