org.apache.directory.server.core.configuration
Class MutablePartitionConfiguration

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.configuration.MutablePartitionConfiguration

public class MutablePartitionConfiguration
extends BTreePartitionConfiguration

A mutable version of PartitionConfiguration.

Version:
$Rev: 493916 $, $Date: 2007-01-08 03:44:33 +0100 (Mon, 08 Jan 2007) $
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
MutablePartitionConfiguration()
          Creates a new instance.
 
Method Summary
 void setCacheSize(int cacheSize)
          Get's the entry cache size for this 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.
 
Methods inherited from class org.apache.directory.server.core.partition.impl.btree.BTreePartitionConfiguration
convert, isOptimizerEnabled, isSynchOnWrite, setSynchOnWrite
 
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

MutablePartitionConfiguration

public MutablePartitionConfiguration()
Creates a new instance.

Method Detail

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

setOptimizerEnabled

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

setCacheSize

public void setCacheSize(int cacheSize)
Get's the entry cache size for this partition.

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


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