org.apache.directory.server
Class ApacheDsService

java.lang.Object
  extended by org.apache.directory.server.ApacheDsService

public class ApacheDsService
extends Object

A class used to start various servers in a given InstanceLayout.

Author:
Apache Directory Project

Constructor Summary
ApacheDsService()
           
 
Method Summary
 org.apache.directory.server.core.api.DirectoryService getDirectoryService()
           
static void printBanner(String bannerConstant)
          Print the banner for a server
 void start(org.apache.directory.server.core.api.InstanceLayout instanceLayout)
          starts various services configured according to the configuration present in the given instance's layout
 void stop()
           
 void synch()
           
 void updateMandatoryOpAttributes(org.apache.directory.server.core.api.partition.Partition partition, org.apache.directory.server.core.api.DirectoryService dirService)
          adds mandatory operational attributes MANDATORY_ENTRY_ATOP_MAP and updates all the LDIF files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheDsService

public ApacheDsService()
Method Detail

start

public void start(org.apache.directory.server.core.api.InstanceLayout instanceLayout)
           throws Exception
starts various services configured according to the configuration present in the given instance's layout

Parameters:
instanceLayout - the on disk location's layout of the intance to be started
Throws:
Exception

getDirectoryService

public org.apache.directory.server.core.api.DirectoryService getDirectoryService()

synch

public void synch()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

printBanner

public static void printBanner(String bannerConstant)
Print the banner for a server


updateMandatoryOpAttributes

public void updateMandatoryOpAttributes(org.apache.directory.server.core.api.partition.Partition partition,
                                        org.apache.directory.server.core.api.DirectoryService dirService)
                                 throws Exception
adds mandatory operational attributes 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 attributes

Parameters:
partition - instance of the partition Note: should only be those which are loaded before starting the DirectoryService
dirService - the DirectoryService instance
Throws:
Exception


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.