public class ApacheDS extends Object
| Constructor and Description |
|---|
ApacheDS(org.apache.directory.server.ldap.LdapServer ldapServer)
Creates a new instance of the ApacheDS server
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.server.core.api.DirectoryService |
getDirectoryService() |
org.apache.directory.server.ldap.LdapServer |
getLdapServer() |
File |
getLdifDirectory()
Get the directory where the LDIF files are stored
|
long |
getSynchPeriodMillis() |
boolean |
isStarted() |
void |
loadLdifs()
Load the existing LDIF files in alphabetic order
|
void |
setLdifDirectory(File ldifDirectory) |
void |
setSynchPeriodMillis(long synchPeriodMillis) |
void |
shutdown() |
void |
startup()
Start the server :
initialize the DirectoryService
start the LDAP server
start the LDAPS server
|
public ApacheDS(org.apache.directory.server.ldap.LdapServer ldapServer) throws org.apache.directory.api.ldap.model.exception.LdapException
ldapServer - The ldap server protocol handlerorg.apache.directory.api.ldap.model.exception.LdapException - If we can't create teh ApacheDS instancepublic void startup() throws Exception
Exception - If the server cannot be startedpublic boolean isStarted()
public org.apache.directory.server.ldap.LdapServer getLdapServer()
public org.apache.directory.server.core.api.DirectoryService getDirectoryService()
public long getSynchPeriodMillis()
public void setSynchPeriodMillis(long synchPeriodMillis)
public File getLdifDirectory()
public void setLdifDirectory(File ldifDirectory)
public void loadLdifs() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - If we can't load the ldifsCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.