Package org.apache.activemq.leveldb

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


        super.configureBroker(answer);
        LevelDBStore levelDBStore = new LevelDBStore();
        File directory = new File("target/activemq-data/leveldb");
        IOHelper.deleteChildren(directory);
        levelDBStore.setDirectory(directory);
        levelDBStore.deleteAllMessages();
        answer.setPersistenceAdapter(levelDBStore);
    }
}
View Full Code Here


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

   @Test
View Full Code Here

        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

    @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

        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

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.