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

java.lang.Object
  extended by org.apache.directory.server.core.configuration.Configuration
      extended by org.apache.directory.server.core.configuration.StartupConfiguration
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
MutableStartupConfiguration, ServerStartupConfiguration

public class StartupConfiguration
extends Configuration

A Configuration that starts up ApacheDS.

Version:
$Rev: 493916 $, $Date: 2007-01-08 03:44:33 +0100 (Mon, 08 Jan 2007) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
static int MAX_SIZE_LIMIT_DEFAULT
           
static int MAX_THREADS_DEFAULT
           
static int MAX_TIME_LIMIT_DEFAULT
           
 
Fields inherited from class org.apache.directory.server.core.configuration.Configuration
DEFAULT_INSTANCE_ID, JNDI_KEY
 
Constructor Summary
StartupConfiguration()
          Creates a new instance with default settings.
StartupConfiguration(java.lang.String instanceId)
          Creates a new instance with default settings that operates on the DirectoryService with the specified ID.
 
Method Summary
 java.util.Set getAuthenticatorConfigurations()
          Returns AuthenticatorConfigurations to use for authenticating clients.
 java.util.Set getBootstrapSchemas()
          Returns BootstrapSchemas to load while bootstrapping.
 java.util.Set getContextPartitionConfigurations()
          Returns PartitionConfigurations to configure context partitions.
 java.util.List getInterceptorConfigurations()
          Returns interceptor chain.
 int getMaxSizeLimit()
           
 int getMaxThreads()
           
 int getMaxTimeLimit()
           
 PartitionConfiguration getSystemPartitionConfiguration()
           
 java.util.List getTestEntries()
          Returns test directory entries(Attributes) to be loaded while bootstrapping.
 java.io.File getWorkingDirectory()
          Returns working directory (counterpart of var/lib).
 boolean isAccessControlEnabled()
          Returns true if access control checks are enbaled.
 boolean isAllowAnonymousAccess()
          Returns true if anonymous access is allowed.
 boolean isDenormalizeOpAttrsEnabled()
           
 boolean isExitVmOnShutdown()
           
 boolean isShutdownHookEnabled()
           
protected  void setAccessControlEnabled(boolean accessControlEnabled)
          Sets whether to enable basic access control checks or not
protected  void setAllowAnonymousAccess(boolean enableAnonymousAccess)
          Sets whether to allow anonymous access or not
protected  void setAuthenticatorConfigurations(java.util.Set authenticatorConfigurations)
          Sets AuthenticatorConfigurations to use for authenticating clients.
protected  void setBootstrapSchemas(java.util.Set bootstrapSchemas)
          Sets BootstrapSchemas to load while bootstrapping.
protected  void setContextPartitionConfigurations(java.util.Set contextParitionConfigurations)
          Sets PartitionConfigurations to configure context partitions.
protected  void setDenormalizeOpAttrsEnabled(boolean denormalizeOpAttrsEnabled)
           
protected  void setExitVmOnShutdown(boolean exitVmOnShutdown)
           
protected  void setInterceptorConfigurations(java.util.List interceptorConfigurations)
          Sets interceptor chain.
protected  void setMaxSizeLimit(int maxSizeLimit)
           
protected  void setMaxThreads(int maxThreads)
           
protected  void setMaxTimeLimit(int maxTimeLimit)
           
protected  void setShutdownHookEnabled(boolean shutdownHookEnabled)
           
protected  void setSystemPartitionConfiguration(PartitionConfiguration systemPartitionConfiguration)
           
protected  void setTestEntries(java.util.List testEntries)
          Sets test directory entries(Attributes) to be loaded while bootstrapping.
protected  void setWorkingDirectory(java.io.File workingDirectory)
          Sets working directory (counterpart of var/lib).
 void validate()
          Validates this configuration.
 
Methods inherited from class org.apache.directory.server.core.configuration.Configuration
clone, getInstanceId, setInstanceId, toConfiguration, toJndiEnvironment
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_THREADS_DEFAULT

public static final int MAX_THREADS_DEFAULT
See Also:
Constant Field Values

MAX_SIZE_LIMIT_DEFAULT

public static final int MAX_SIZE_LIMIT_DEFAULT
See Also:
Constant Field Values

MAX_TIME_LIMIT_DEFAULT

public static final int MAX_TIME_LIMIT_DEFAULT
See Also:
Constant Field Values
Constructor Detail

StartupConfiguration

public StartupConfiguration()
Creates a new instance with default settings.


StartupConfiguration

public StartupConfiguration(java.lang.String instanceId)
Creates a new instance with default settings that operates on the DirectoryService with the specified ID.

Method Detail

getAuthenticatorConfigurations

public java.util.Set getAuthenticatorConfigurations()
Returns AuthenticatorConfigurations to use for authenticating clients.


setAuthenticatorConfigurations

protected void setAuthenticatorConfigurations(java.util.Set authenticatorConfigurations)
Sets AuthenticatorConfigurations to use for authenticating clients.


getBootstrapSchemas

public java.util.Set getBootstrapSchemas()
Returns BootstrapSchemas to load while bootstrapping.


setBootstrapSchemas

protected void setBootstrapSchemas(java.util.Set bootstrapSchemas)
Sets BootstrapSchemas to load while bootstrapping.


getContextPartitionConfigurations

public java.util.Set getContextPartitionConfigurations()
Returns PartitionConfigurations to configure context partitions.


setContextPartitionConfigurations

protected void setContextPartitionConfigurations(java.util.Set contextParitionConfigurations)
Sets PartitionConfigurations to configure context partitions.


isAccessControlEnabled

public boolean isAccessControlEnabled()
Returns true if access control checks are enbaled.


setAccessControlEnabled

protected void setAccessControlEnabled(boolean accessControlEnabled)
Sets whether to enable basic access control checks or not


isAllowAnonymousAccess

public boolean isAllowAnonymousAccess()
Returns true if anonymous access is allowed.


setAllowAnonymousAccess

protected void setAllowAnonymousAccess(boolean enableAnonymousAccess)
Sets whether to allow anonymous access or not


getInterceptorConfigurations

public java.util.List getInterceptorConfigurations()
Returns interceptor chain.


setInterceptorConfigurations

protected void setInterceptorConfigurations(java.util.List interceptorConfigurations)
Sets interceptor chain.


getTestEntries

public java.util.List getTestEntries()
Returns test directory entries(Attributes) to be loaded while bootstrapping.


setTestEntries

protected void setTestEntries(java.util.List testEntries)
Sets test directory entries(Attributes) to be loaded while bootstrapping.


getWorkingDirectory

public java.io.File getWorkingDirectory()
Returns working directory (counterpart of var/lib).


setWorkingDirectory

protected void setWorkingDirectory(java.io.File workingDirectory)
Sets working directory (counterpart of var/lib).


validate

public void validate()
Description copied from class: Configuration
Validates this configuration.

Overrides:
validate in class Configuration

setShutdownHookEnabled

protected void setShutdownHookEnabled(boolean shutdownHookEnabled)

isShutdownHookEnabled

public boolean isShutdownHookEnabled()

setExitVmOnShutdown

protected void setExitVmOnShutdown(boolean exitVmOnShutdown)

isExitVmOnShutdown

public boolean isExitVmOnShutdown()

setMaxThreads

protected void setMaxThreads(int maxThreads)

getMaxThreads

public int getMaxThreads()

setMaxSizeLimit

protected void setMaxSizeLimit(int maxSizeLimit)

getMaxSizeLimit

public int getMaxSizeLimit()

setMaxTimeLimit

protected void setMaxTimeLimit(int maxTimeLimit)

getMaxTimeLimit

public int getMaxTimeLimit()

setSystemPartitionConfiguration

protected void setSystemPartitionConfiguration(PartitionConfiguration systemPartitionConfiguration)

getSystemPartitionConfiguration

public PartitionConfiguration getSystemPartitionConfiguration()

isDenormalizeOpAttrsEnabled

public boolean isDenormalizeOpAttrsEnabled()

setDenormalizeOpAttrsEnabled

protected void setDenormalizeOpAttrsEnabled(boolean denormalizeOpAttrsEnabled)


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