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(LdapServer ldapServer)
          Creates a new instance of the ApacheDS server
 
Method Summary
 DirectoryService getDirectoryService()
           
 LdapServer getLdapServer()
           
 java.io.File getLdifDirectory()
          Get the directory where
 long getSynchPeriodMillis()
           
 boolean isStarted()
           
 void loadLdifs()
          Load the ldif files if there are some
 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(LdapServer ldapServer)
         throws java.lang.Exception
Creates a new instance of the ApacheDS server

Parameters:
directoryService -
ldapServer -
Throws:
java.lang.Exception
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:
    javax.naming.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

    getLdapServer

    public LdapServer getLdapServer()

    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:

    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-2011 Apache Software Foundation. All Rights Reserved.