public class ApacheDsService extends Object
InstanceLayout
.Constructor and Description |
---|
ApacheDsService() |
Modifier and Type | Method and Description |
---|---|
DirectoryService |
getDirectoryService() |
static void |
printBanner(String bannerConstant)
Print the banner for a server
|
void |
start(InstanceLayout instanceLayout)
starts various services configured according to the
configuration present in the given instance's layout
|
void |
stop() |
void |
synch() |
void |
updateMandatoryOpAttributes(Partition partition,
DirectoryService dirService)
adds mandatory operational attributes
MANDATORY_ENTRY_ATOP_MAP and updates all the LDIF files. |
public void start(InstanceLayout instanceLayout) throws Exception
instanceLayout
- the on disk location's layout of the intance to be startedException
public DirectoryService getDirectoryService()
public static void printBanner(String bannerConstant)
public void updateMandatoryOpAttributes(Partition partition, DirectoryService dirService) throws Exception
MANDATORY_ENTRY_ATOP_MAP
and updates all the LDIF files.
WARN: this method is only called for the first time when schema and config files are bootstrapped
afterwards it is the responsibility of the user to ensure correctness of LDIF files if modified
by hand
Note: we do these modifications explicitly cause we have no idea if each entry's LDIF file has the
correct values for all these mandatory attributespartition
- instance of the partition Note: should only be those which are loaded before starting the DirectoryServicedirService
- the DirectoryService instanceException
Copyright © 2018. All rights reserved.