Package org.apache.directory.server.ldap.replication.consumer

Examples of org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer.stop()


        ReplicationConsumer consumer = createConsumer();

        // We should have 1000 entries plus the base entry = TOTAL_COUNT
        assertTrue( waitForSyncReplClient( consumer, TOTAL_COUNT ) );
        consumer.stop();

        //System.out.println( "\n<-- Done" );
    }

View Full Code Here


        // Now check that the entry has been copied in the consumer
        assertTrue( waitForSyncReplClient( consumer, 1 ) );

        // Removed the added entry
        providerSession.delete( addedEntry.getDn() );
        consumer.stop();

        //System.out.println( "\n<-- Done" );
    }

View Full Code Here

        // Load all the entries
        waitUntilLimitSyncReplClient( TOTAL_COUNT, consumer );

        // Stop the consumer
        consumer.stop();

        int additionalCount = 10;
        List<Dn> newEntries = new ArrayList<Dn>();
        for ( int i = 0; i < additionalCount; i++ )
        {
View Full Code Here

        // Start it again
        runConsumer( consumer );

        // We should get only the additional values cause consumer sends a cookie now
        assertTrue( waitForSyncReplClient( consumer, additionalCount ) );
        consumer.stop();

        for ( Dn dn : newEntries )
        {
            providerSession.delete( dn );
        }
View Full Code Here

        assertTrue( waitUntilLimitSyncReplClient( TOTAL_COUNT, consumer1, consumer2, consumer3, consumer4 ) );

        consumer1.stop();
        consumer2.stop();
        consumer3.stop();
        consumer4.stop();

        //System.out.println( "\n<-- Done" );
    }
}
View Full Code Here

        ReplicationConsumer consumer = createConsumer();

        // We should have 1000 entries plus the base entry = TOTAL_COUNT
        assertTrue( waitForSyncReplClient( consumer, TOTAL_COUNT ) );
        consumer.stop();

        Thread.sleep( 5 * 1000 ); // let the journal be created and put in the map

        SyncReplRequestHandler syncreplHandler = ( SyncReplRequestHandler ) providerServer.getReplicationReqHandler();

View Full Code Here

        ReplicationConsumer consumer = createConsumer();

        // We should have 1000 entries plus the base entry = TOTAL_COUNT
        assertTrue( waitForSyncReplClient( consumer, TOTAL_COUNT ) );
        consumer.stop();

        //System.out.println( "\n<-- Done" );
    }

View Full Code Here

        // Now check that the entry has been copied in the consumer
        assertTrue( waitForSyncReplClient( consumer, 1 ) );

        // Removed the added entry
        providerSession.delete( addedEntry.getDn() );
        consumer.stop();

        //System.out.println( "\n<-- Done" );
    }

View Full Code Here

        // Load all the entries
        waitUntilLimitSyncReplClient( TOTAL_COUNT, consumer );

        // Stop the consumer
        consumer.stop();

        int additionalCount = 10;
        List<Dn> newEntries = new ArrayList<Dn>();
        for ( int i = 0; i < additionalCount; i++ )
        {
View Full Code Here

        // Start it again
        runConsumer( consumer );

        // We should get only the additional values cause consumer sends a cookie now
        assertTrue( waitForSyncReplClient( consumer, additionalCount ) );
        consumer.stop();

        for ( Dn dn : newEntries )
        {
            providerSession.delete( dn );
        }
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.