Package org.apache.ldap.server.configuration

Examples of org.apache.ldap.server.configuration.DirectoryPartitionConfiguration


        Iterator i = factoryCfg.getStartupConfiguration().getContextPartitionConfigurations().iterator();
        try
        {
            while( i.hasNext() )
            {
                DirectoryPartitionConfiguration c = ( DirectoryPartitionConfiguration ) i.next();
                addContextPartition( c );
                initializedPartitionCfgs.add( 0, c );
            }
            initialized = true;
        }
        finally
        {
            if( !initialized )
            {
                i = initializedPartitionCfgs.iterator();
                while( i.hasNext() )
                {
                    DirectoryPartitionConfiguration partitionCfg =
                        ( DirectoryPartitionConfiguration ) i.next();
                    DirectoryPartition partition = partitionCfg.getContextPartition();
                    i.remove();
                    try
                    {
                        partition.destroy();
                    }
                    catch( Exception e )
                    {
                        log.warn(
                                "Failed to destroy a partition: " +
                                partitionCfg.getSuffix(), e );
                    }
                    finally
                    {
                        unregister( partition );
                    }
View Full Code Here

TOP

Related Classes of org.apache.ldap.server.configuration.DirectoryPartitionConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.