Examples of deleteAllMessages()


Examples of org.apache.activemq.leveldb.LevelDBStore.deleteAllMessages()

        BrokerService broker = new BrokerService();
        LevelDBStore levelDBStore = new LevelDBStore();
        File directory = new File("target/activemq-data/leveldb");
        IOHelper.deleteChildren(directory);
        levelDBStore.setDirectory(directory);
        levelDBStore.deleteAllMessages();
        broker.setPersistenceAdapter(levelDBStore);
        return broker;
    }
   
    protected BrokerService createRestartedBroker() throws Exception {
View Full Code Here

Examples of org.apache.activemq.leveldb.LevelDBStore.deleteAllMessages()

    @Override
    protected PersistenceAdapter createStore(boolean delete) throws IOException {
        LevelDBStore store = new LevelDBStore();
        store.setLogSize(maxFileLength);
        if (delete) {
            store.deleteAllMessages();
        }
        return store;
    }
}
View Full Code Here

Examples of org.apache.activemq.leveldb.LevelDBStore.deleteAllMessages()

        brokerService = new BrokerService();
        brokerService.addConnector("tcp://localhost:0");

        LevelDBStore store = new LevelDBStore();
        store.setDirectory(new File("target/activemq-data/haleveldb"));
        store.deleteAllMessages();
        brokerService.setPersistenceAdapter(store);

        PolicyMap policyMap = new PolicyMap();
        PolicyEntry policy = new PolicyEntry();
        policy.setMemoryLimit(1);
View Full Code Here

Examples of org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.deleteAllMessages()

        EmbeddedDataSource dataSource = new EmbeddedDataSource();
        dataSource.setDatabaseName("derbyDb");
        dataSource.setCreateDatabase("create");
        jdbc.setDataSource(dataSource);

        jdbc.deleteAllMessages();
        broker.setPersistenceAdapter(jdbc);
        return broker;
    }

    ActiveMQConnectionFactory connectionFactory;
View Full Code Here

Examples of org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.deleteAllMessages()

    protected KahaDBPersistenceAdapter createStore(boolean delete) throws IOException {
        KahaDBPersistenceAdapter kaha = new KahaDBPersistenceAdapter();
        kaha.setJournalMaxFileLength(maxFileLength);
        kaha.setCleanupInterval(5000);
        if (delete) {
            kaha.deleteAllMessages();
        }
        return kaha;
    }

    public void prepareBrokerWithMultiStore(boolean deleteAllMessages) throws Exception {
View Full Code Here

Examples of org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.deleteAllMessages()

        KahaDBPersistenceAdapter kahadb = new KahaDBPersistenceAdapter();
        kahadb.setCheckForCorruptJournalFiles(true);
        kahadb.setCleanupInterval(1000);

        kahadb.deleteAllMessages();
        broker.setPersistenceAdapter(kahadb);
        broker.getSystemUsage().getMemoryUsage().setLimit(1024*1024*100);
        return broker;
    }

View Full Code Here

Examples of org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.deleteAllMessages()

    protected PersistenceAdapter createStore(boolean delete) throws IOException {
        KahaDBPersistenceAdapter kaha = new KahaDBPersistenceAdapter();
        kaha.setJournalMaxFileLength(maxFileLength);
        kaha.setCleanupInterval(5000);
        if (delete) {
            kaha.deleteAllMessages();
        }
        return kaha;
    }

    @Before
View Full Code Here

Examples of org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.deleteAllMessages()

    protected KahaDBPersistenceAdapter createStore(boolean delete) throws IOException {
        KahaDBPersistenceAdapter kaha = new KahaDBPersistenceAdapter();
        kaha.setJournalMaxFileLength(maxFileLength);
        kaha.setCleanupInterval(5000);
        if (delete) {
            kaha.deleteAllMessages();
        }
        return kaha;
    }

    public void prepareBrokerWithMultiStore(boolean deleteAllMessages) throws Exception {
View Full Code Here

Examples of org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.deleteAllMessages()

    protected KahaDBPersistenceAdapter createStore(boolean delete) throws IOException {
        KahaDBPersistenceAdapter kaha = new KahaDBPersistenceAdapter();
        kaha.setJournalMaxFileLength(maxFileLength);
        kaha.setCleanupInterval(5000);
        if (delete) {
            kaha.deleteAllMessages();
        }
        return kaha;
    }

    public void prepareBrokerWithMultiStore(boolean deleteAllMessages) throws Exception {
View Full Code Here

Examples of org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.deleteAllMessages()

    protected PersistenceAdapter createPersistenceAdapter(boolean delete) throws Exception {
        KahaDBPersistenceAdapter adapter = new KahaDBPersistenceAdapter();
        adapter.setConcurrentStoreAndDispatchQueues(false);
        adapter.setConcurrentStoreAndDispatchTopics(false);
        adapter.deleteAllMessages();
        return adapter;
    }

    @Before
    public void setUp() throws Exception {
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.