Package org.apache.activemq.store.kahadaptor

Examples of org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter


        File dataFileDir = new File("target/test-amq-data/perfTest");
        File journalDir = new File(dataFileDir, "journal").getCanonicalFile();
        JournalImpl journal = new JournalImpl(journalDir, 3, 1024 * 1024 * 20);

        KahaPersistenceAdapter kahaAdaptor = new KahaPersistenceAdapter();
        JournalPersistenceAdapter journalAdaptor = new JournalPersistenceAdapter(journal, kahaAdaptor, answer.getTaskRunnerFactory());
        journalAdaptor.setMaxCheckpointWorkers(1);

        answer.setPersistenceAdapter(journalAdaptor);
        answer.addConnector(bindAddress);
View Full Code Here


* @version $Revision: 1.3 $
*/
public class KahaQueueTest extends SimpleQueueTest {

    protected void configureBroker(BrokerService answer) throws Exception {
        KahaPersistenceAdapter adaptor = new KahaPersistenceAdapter();
        answer.setPersistenceAdapter(adaptor);
        answer.addConnector(bindAddress);
        answer.setDeleteAllMessagesOnStartup(true);
    }
View Full Code Here

*/
public class KahaDurableSubscriptionTest extends DurableSubscriptionTestSupport {

    protected PersistenceAdapter createPersistenceAdapter() throws IOException {
        File dataDir = new File("target/test-data/durableKaha");
        KahaPersistenceAdapter adaptor = new KahaPersistenceAdapter();
        adaptor.setDirectory(dataDir);
        return adaptor;
    }
View Full Code Here

     * BrokerFactoryBean(resource); factory.afterPropertiesSet(); BrokerService
     * result=factory.getBroker(); result.start(); return result; }
     */

    protected void configureBroker(BrokerService answer,String uri) throws Exception {
        KahaPersistenceAdapter adaptor = new KahaPersistenceAdapter();
        answer.setPersistenceAdapter(adaptor);
        answer.setDeleteAllMessagesOnStartup(true);
        answer.addConnector(uri);
      
    }
View Full Code Here

    public void testPerformance() throws JMSException {
        // just cancel super class test
    }

    protected void configureBroker(BrokerService answer,String uri) throws Exception {
        KahaPersistenceAdapter adaptor = new KahaPersistenceAdapter();
        answer.setPersistenceAdapter(adaptor);
        answer.addConnector(uri);
        answer.setDeleteAllMessagesOnStartup(true);
    }
View Full Code Here

        File dataFileDir = new File("target/test-amq-data/perfTest");
        File journalDir = new File(dataFileDir, "journal").getCanonicalFile();
        JournalImpl journal = new JournalImpl(journalDir, 3, 1024 * 1024 * 20);

        KahaPersistenceAdapter kahaAdaptor = new KahaPersistenceAdapter();
        JournalPersistenceAdapter journalAdaptor = new JournalPersistenceAdapter(journal, kahaAdaptor, answer.getTaskRunnerFactory());
        journalAdaptor.setMaxCheckpointWorkers(1);

        answer.setPersistenceAdapter(journalAdaptor);
        answer.addConnector(uri);
View Full Code Here

        File dataFileDir = new File("target/test-amq-data/perfTest");
        File journalDir = new File(dataFileDir, "journal").getCanonicalFile();
        JournalImpl journal = new JournalImpl(journalDir, 3, 1024 * 1024 * 20);

        KahaPersistenceAdapter kahaAdaptor = new KahaPersistenceAdapter();
        JournalPersistenceAdapter journalAdaptor = new JournalPersistenceAdapter(journal, kahaAdaptor, answer.getTaskRunnerFactory());
        journalAdaptor.setMaxCheckpointWorkers(1);

        answer.setPersistenceAdapter(journalAdaptor);
        answer.addConnector(uri);
View Full Code Here

TOP

Related Classes of org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter

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.