Package org.apache.activemq.store.journal

Examples of org.apache.activemq.store.journal.JournalPersistenceAdapterFactory


*/
public class JournalDurableSubscriptionTest extends DurableSubscriptionTestSupport {

    protected PersistenceAdapter createPersistenceAdapter() throws IOException {
        File dataDir = new File("target/test-data/durableJournal");
        JournalPersistenceAdapterFactory factory = new JournalPersistenceAdapterFactory();
        factory.setDataDirectoryFile(dataDir);
        factory.setUseJournal(true);
        factory.setJournalLogFileSize(1024 * 64);
        return factory.createPersistenceAdapter();
    }
View Full Code Here


*/
public class JournalDurableSubscriptionTest extends DurableSubscriptionTestSupport {

    protected PersistenceAdapter createPersistenceAdapter() throws IOException {
        File dataDir = new File("target/test-data/durableJournal");
        JournalPersistenceAdapterFactory factory = new JournalPersistenceAdapterFactory();
        factory.setDataDirectoryFile(dataDir);
        factory.setUseJournal(true);
        factory.setJournalLogFileSize(1024 * 64);
        return factory.createPersistenceAdapter();
    }
View Full Code Here

*/
public class JDBCDurableSubscriptionTest extends DurableSubscriptionTestSupport {

    protected PersistenceAdapter createPersistenceAdapter() throws IOException {
        File dataDir = new File("target/test-data/durableJDBC");
        JournalPersistenceAdapterFactory factory = new JournalPersistenceAdapterFactory();
        factory.setDataDirectoryFile(dataDir);
        factory.setUseJournal(false);
        return factory.createPersistenceAdapter();
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.store.journal.JournalPersistenceAdapterFactory

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.