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

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


       
        ReplicationConsumer consumer = createConsumer();
       
        // We should have 1000 entries plus the base entry = 1001
        assertTrue( waitForSyncReplClient( consumer, 1001 ) );
        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 but stop after 200 entries have been loaded
        waitUntilLimitSyncReplClient( 200, consumer );
       
        // Stop the consumer
        consumer.stop();
       
        // Start it again
        runConsumer( consumer );
       
        // We should have 1000 entries plus the base entry = 1001
View Full Code Here

        // Start it again
        runConsumer( consumer );
       
        // We should have 1000 entries plus the base entry = 1001
        assertTrue( waitForSyncReplClient( consumer, 1001 ) );
        consumer.stop();
       
        System.out.println( "\n<-- Done" );
    }
   
   
View Full Code Here

        assertTrue( waitUntilLimitSyncReplClient( 1001, consumer1, consumer2, consumer3, consumer4 ) );
       
        consumer1.stop();
        consumer2.stop();
        consumer3.stop();
        consumer4.stop();

        System.out.println( "\n<-- Done" );
    }
}
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.