Examples of PartitionFactory


Examples of org.apache.directory.server.core.factory.PartitionFactory

    @Test
    public void testAddAndRemove() throws Exception
    {
        DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
        PartitionFactory partitionFactory = dsFactory.getPartitionFactory();
        Partition partition = partitionFactory.createPartition( getService().getSchemaManager(),
            getService().getDnFactory(), "removable",
            "ou=removable", 100, getService()
                .getInstanceLayout().getPartitionsDirectory() );

        // Test AddContextPartition
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

                    minPort + 1 );
            }

            // print out information which partition factory we use
            DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
            PartitionFactory partitionFactory = dsFactory.getPartitionFactory();
            LOG.debug( "Using partition factory {}", partitionFactory.getClass().getSimpleName() );

            // Now run the class
            super.run( notifier );

            if ( classLdapServer != null )
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

                    minPort + 1 );
            }

            // print out information which partition factory we use
            DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
            PartitionFactory partitionFactory = dsFactory.getPartitionFactory();
            LOG.debug( "Using partition factory {}", partitionFactory.getClass().getSimpleName() );

            // Now run the class
            super.run( notifier );

            if ( classLdapServer != null )
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

        List<Interceptor> interceptors = directoryService.getInterceptors();
        interceptors.add(new KeyDerivationInterceptor());
        directoryService.setInterceptors(interceptors);
        directoryServiceFactory.init("defaultDS");

        PartitionFactory partitionFactory = directoryServiceFactory.getPartitionFactory();
        Partition partition = partitionFactory.createPartition("example", "dc=example,dc=com",
                1000, new File(directoryService.getWorkingDirectory(), "example"));

        partitionFactory.addIndex(partition, "objectClass", 1000);
        partitionFactory.addIndex(partition, "dc", 1000);
        partitionFactory.addIndex(partition, "ou", 1000);

        partition.setSchemaManager(directoryService.getSchemaManager());
        // Inject the partition into the DirectoryService
        directoryService.addPartition(partition);
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

    {
        try
        {
            // print out information which partition factory we use
            DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
            PartitionFactory partitionFactory = dsFactory.getPartitionFactory();
            LOG.debug( "Using partition factory {}", partitionFactory.getClass().getSimpleName() );

            // Create and initialize the Suite DS
            startDS( getDescription() );
           
            // create and initialize the suite LdapServer
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

            if ( suite == null )
            {
                // print out information which partition factory we use
                DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
                PartitionFactory partitionFactory = dsFactory.getPartitionFactory();
                LOG.debug( "Using partition factory {}", partitionFactory.getClass().getSimpleName() );
            }

            // Now run the class
            super.run( notifier );
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

    @Test
    public void testAddAndRemove() throws Exception
    {
        DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
        PartitionFactory partitionFactory = dsFactory.getPartitionFactory();
        Partition partition = partitionFactory.createPartition( getService().getSchemaManager(), "removable", "ou=removable", 100, getService()
            .getInstanceLayout().getPartitionsDirectory() );

        // Test AddContextPartition
        getService().addPartition( partition );
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

{

    @Test
    public void testAddAndRemove() throws Exception
    {
        PartitionFactory partitionFactory = DefaultDirectoryServiceFactory.DEFAULT.getPartitionFactory();
        Partition partition = partitionFactory.createPartition( "removable", "ou=removable", 100, service
            .getWorkingDirectory() );

        // Test AddContextPartition
        service.addPartition( partition );
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

    public void run( final RunNotifier notifier )
    {
        try
        {
            // print out information which partition factory we use
            PartitionFactory partitionFactory = DefaultDirectoryServiceFactory.DEFAULT.getPartitionFactory();
            System.out.println( "Using partition factory " + partitionFactory.getClass().getSimpleName() );

            // Create and initialize the Suite DS
            startDS( getDescription() );
           
            // Add the partitions to this DS
View Full Code Here

Examples of org.apache.directory.server.core.factory.PartitionFactory

            }

            if ( suite == null )
            {
                // print out information which partition factory we use
                PartitionFactory partitionFactory = DefaultDirectoryServiceFactory.DEFAULT.getPartitionFactory();
                System.out.println( "Using partition factory " + partitionFactory.getClass().getSimpleName() );
            }

            // Now run the class
            super.run( notifier );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.