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 Exception
ldapServer - The ldap server protocol handlerExceptionpublic void startup()
throws Exception
NamingException - If the server cannot be startedIOException - If an IO error occurred while reading some fileExceptionpublic boolean isStarted()
public LdapServer getLdapServer()
public DirectoryService getDirectoryService()
public long getSynchPeriodMillis()
public void setSynchPeriodMillis(long synchPeriodMillis)
public File getLdifDirectory()
public void setLdifDirectory(File ldifDirectory)
Copyright © 2021. All rights reserved.