Package org.apache.activemq.leveldb

Examples of org.apache.activemq.leveldb.LevelDBStore


        // just cancel super class test
    }

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


    protected void configureBroker(BrokerService answer,String uri) throws Exception {

        File dataFileDir = new File("target/test-amq-data/perfTest/amq");

        LevelDBStore adaptor = new LevelDBStore();
        adaptor.setDirectory(dataFileDir);

        answer.setPersistenceAdapter(adaptor);
        answer.addConnector(uri);
        answer.setDeleteAllMessagesOnStartup(true);
View Full Code Here

public class QueueBrowsingLevelDBTest extends QueueBrowsingTest {

    @Override
    public BrokerService createBroker() throws IOException {
        BrokerService broker = super.createBroker();
        LevelDBStore store = new LevelDBStore();
        store.setDirectory(new File("target/test-data/leveldb"));
        broker.setPersistenceAdapter(store);
        return broker;
    }
View Full Code Here

            File datadir = new File("activemq-data/" + getName() + "-leveldb");
            if (deleteAllMessages)
                delete(datadir);

            broker.setPersistent(true);
            LevelDBStore amq = new LevelDBStore();
            amq.setDirectory(datadir);
            broker.setPersistenceAdapter(amq);
            break;

        case KAHADB:
            File kahadbData = new File("activemq-data/" + getName() + "-kahadb");
View Full Code Here

*/
public class LevelDBRedeliveryRestartTest extends RedeliveryRestartTest {
    @Override
    protected void configureBroker(BrokerService broker) throws Exception {
        broker.setDestinationPolicy(policyMap);
        LevelDBStore store = new LevelDBStore();
        broker.setPersistenceAdapter(store);
        broker.addConnector("tcp://0.0.0.0:0");
    }
View Full Code Here

**/
public class StoreQueueCursorLevelDBNoDuplicateTest extends StoreQueueCursorNoDuplicateTest {
    @Override
    protected BrokerService createBroker() throws Exception {
        BrokerService broker = super.createBroker();
        LevelDBStore store = new LevelDBStore();
        store.setDirectory(new File("target/activemq-data/leveldb"));
        broker.setPersistenceAdapter(store);
        return broker;
    }
View Full Code Here

        master.addConnector(brokerUrl);
        master.start();
    }

    private void configureSharedPersistenceAdapter(BrokerService broker) throws Exception {
       LevelDBStore adapter = new LevelDBStore();
       adapter.setDirectory(new File("shared"));
       broker.setPersistenceAdapter(adapter);
    }
View Full Code Here

public class IDERunner {

    public static void main(String[]args) throws Exception {
        BrokerService bs = new BrokerService();
        bs.addConnector("tcp://localhost:61616");
        LevelDBStore store = new LevelDBStore();
        store.setDirectory(new File("target/activemq-data/haleveldb"));
        bs.setPersistenceAdapter(store);
        bs.deleteAllMessages();
        bs.start();
        bs.waitUntilStopped();
    }
View Full Code Here

*/
public class LevelDBPlistTest extends PListTestSupport {

    @Override
    protected LevelDBStore createPListStore() {
        return new LevelDBStore();
    }
View Full Code Here

    protected LevelDBStore createPListStore() {
        return new LevelDBStore();
    }

    protected LevelDBStore createConcurrentAddIteratePListStore() {
        return new LevelDBStore();
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.leveldb.LevelDBStore

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.