org.apache.directory.server.configuration
Class ApacheDS

java.lang.Object
  extended by org.apache.directory.server.configuration.ApacheDS

public class ApacheDS
extends java.lang.Object

Apache Directory Server top level.

Version:
$Rev$
Author:
Apache Directory Project
XBean

Constructor Summary
ApacheDS(DirectoryService directoryService, LdapService ldapService, LdapService ldapsService)
          Creates a new instance of the ApacheDS server
 
Method Summary
 DirectoryService getDirectoryService()
           
 LdapService getLdapService()
           
 LdapService getLdapsService()
           
 java.io.File getLdifDirectory()
          Get the directory where
 long getSynchPeriodMillis()
           
 boolean isStarted()
           
 void loadLdifs()
          Load the ldif files if there are some
 void setAllowAnonymousAccess(boolean allowAnonymousAccess)
           
 void setLdifDirectory(java.io.File ldifDirectory)
           
 void setSynchPeriodMillis(long synchPeriodMillis)
           
 void shutdown()
           
 void startup()
          Start the server : initialize the DirectoryService start the LDAP server start the LDAPS server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheDS

public ApacheDS(DirectoryService directoryService,
                LdapService ldapService,
                LdapService ldapsService)
Creates a new instance of the ApacheDS server

Parameters:
directoryService -
ldapService -
ldapsService -
Method Detail

startup

public void startup()
             throws java.lang.Exception
Start the server :
  • initialize the DirectoryService
  • start the LDAP server
  • start the LDAPS server
  • Throws:
    NamingException - If the server cannot be started
    java.io.IOException - If an IO error occured while reading some file
    java.lang.Exception

    isStarted

    public boolean isStarted()

    shutdown

    public void shutdown()
                  throws java.lang.Exception
    Throws:
    java.lang.Exception

    getLdapService

    public LdapService getLdapService()

    getLdapsService

    public LdapService getLdapsService()

    getDirectoryService

    public DirectoryService getDirectoryService()

    getSynchPeriodMillis

    public long getSynchPeriodMillis()

    setSynchPeriodMillis

    public void setSynchPeriodMillis(long synchPeriodMillis)

    getLdifDirectory

    public java.io.File getLdifDirectory()
    Get the directory where

    Returns:

    setAllowAnonymousAccess

    public void setAllowAnonymousAccess(boolean allowAnonymousAccess)

    setLdifDirectory

    public void setLdifDirectory(java.io.File ldifDirectory)

    loadLdifs

    public void loadLdifs()
                   throws java.lang.Exception
    Load the ldif files if there are some

    Throws:
    java.lang.Exception


    Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.