public class ApacheDS extends Object
Constructor and Description |
---|
ApacheDS(LdapServer ldapServer)
Creates a new instance of the ApacheDS server
|
Modifier and Type | Method and Description |
---|---|
DirectoryService |
getDirectoryService() |
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(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 LdapServer getLdapServer()
public 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–2020 The Apache Software Foundation. All rights reserved.