|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.configuration.PartitionConfiguration
public class PartitionConfiguration
A configuration for Partition
.
Field Summary | |
---|---|
static int |
DEFAULT_CACHE_SIZE
|
static java.lang.String |
SYSTEM_PARTITION_NAME
The name of reserved system partition |
Constructor Summary | |
---|---|
protected |
PartitionConfiguration()
Creates a new instance. |
Method Summary | |
---|---|
int |
getCacheSize()
Get's the entry cache size for this partition. |
javax.naming.directory.Attributes |
getContextEntry()
Returns root entry that will be added to the Partition
after it is initialized. |
Partition |
getContextPartition()
Returns the Partition that this configuration configures. |
java.util.Set |
getIndexedAttributes()
Returns the set of attribute type strings to create an index on. |
java.lang.String |
getName()
Returns user-defined name of the Partition that
this configuration configures. |
javax.naming.Name |
getNormalizedSuffix(MatchingRuleRegistry matchingRuleRegistry)
Returns the normalized suffix of the Partition . |
java.lang.String |
getSuffix()
Returns the suffix of the Partition . |
protected void |
setCacheSize(int cacheSize)
Used to specify the entry cache size for a partition. |
protected void |
setContextEntry(javax.naming.directory.Attributes rootEntry)
Sets root entry that will be added to the Partition
after it is initialized. |
protected void |
setContextPartition(Partition partition)
Sets the Partition that this configuration configures. |
protected void |
setIndexedAttributes(java.util.Set indexedAttributes)
Sets the set of attribute type strings to create an index on. |
protected void |
setName(java.lang.String name)
Sets user-defined name of the Partition that
this configuration configures. |
protected void |
setSuffix(java.lang.String suffix)
Sets the suffix of the Partition . |
void |
validate()
Validates this configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SYSTEM_PARTITION_NAME
public static final int DEFAULT_CACHE_SIZE
Constructor Detail |
---|
protected PartitionConfiguration()
Method Detail |
---|
public java.lang.String getName()
Partition
that
this configuration configures.
protected void setName(java.lang.String name)
Partition
that
this configuration configures.
public java.util.Set getIndexedAttributes()
protected void setIndexedAttributes(java.util.Set indexedAttributes)
public Partition getContextPartition()
Partition
that this configuration configures.
protected void setContextPartition(Partition partition)
Partition
that this configuration configures.
public javax.naming.directory.Attributes getContextEntry()
Partition
after it is initialized.
protected void setContextEntry(javax.naming.directory.Attributes rootEntry)
Partition
after it is initialized.
public java.lang.String getSuffix()
Partition
.
public javax.naming.Name getNormalizedSuffix(MatchingRuleRegistry matchingRuleRegistry) throws javax.naming.NamingException
Partition
.
javax.naming.NamingException
protected void setSuffix(java.lang.String suffix) throws javax.naming.NamingException
Partition
.
javax.naming.NamingException
public void validate()
ConfigurationException
- if this configuration is not validprotected void setCacheSize(int cacheSize)
cacheSize
- the size of the cachepublic int getCacheSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |