Examples of deleteAllMessages()


Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

    @Override
    protected BrokerService createBroker() throws Exception {
        BrokerService broker = super.createBroker();
        broker.getSystemUsage().getStoreUsage().setLimit(10 * 1024);
        broker.deleteAllMessages();
        return broker;
    }

    protected boolean isPersistent() {
        return true;
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

        BrokerService answer = new BrokerService();
        answer.setUseJmx(true);
        answer.setEnableStatistics(true);
        answer.addConnector(bindAddress);
        answer.setPersistenceAdapter(persistenceAdapter);
        answer.deleteAllMessages();
        return answer;
    }

    @Override
    protected ConnectionFactory createConnectionFactory() throws Exception {
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

    }

    protected BrokerService createBroker() throws Exception {
        BrokerService broker = new BrokerService();
        broker.getSystemUsage().getMemoryUsage().setLimit(1 * 1024 * 1024); //1MB
        broker.deleteAllMessages();

        PolicyMap policyMap = new PolicyMap();
        PolicyEntry policyEntry = new PolicyEntry();
        policyEntry.setProducerFlowControl(false);
        policyMap.put(new ActiveMQQueue(">"), policyEntry);
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

        BrokerService answer = new BrokerService();
        answer.setUseJmx(true);
        answer.setEnableStatistics(true);
        answer.addConnector(bindAddress);
        answer.setPersistenceAdapter(persistenceAdapter);
        answer.deleteAllMessages();
        return answer;
    }

    protected void echo(String text) {
        LOG.info(text);
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

        BrokerService bs = new BrokerService();
        bs.addConnector("mqtt://0.0.0.0:1883?trace=true");
        KahaDBStore store = new KahaDBStore();
        store.setDirectory(new File("target/activemq-data/kahadb"));
        bs.setPersistenceAdapter(store);
        bs.deleteAllMessages();
        bs.start();
        bs.waitUntilStopped();
    }
}
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

        BrokerService broker = super.createBroker();
        broker.setSchedulerSupport(true);
        broker.setDataDirectory("target");
        broker.setSchedulerDirectoryFile(schedulerDirectory);
        broker.getSystemUsage().getStoreUsage().setLimit(1 * 512);
        broker.deleteAllMessages();
        return broker;
    }

    @Override
    protected boolean isPersistent() {
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

        BrokerService bs = new BrokerService();
        bs.addConnector("amqp://0.0.0.0:5672?trace=true");
        KahaDBStore store = new KahaDBStore();
        store.setDirectory(new File("target/activemq-data/kahadb"));
        bs.setPersistenceAdapter(store);
        bs.deleteAllMessages();
        bs.start();
        bs.waitUntilStopped();
    }
}
View Full Code Here

Examples of org.apache.activemq.broker.BrokerService.deleteAllMessages()

    }

    protected BrokerService createBroker() throws Exception {
        BrokerService broker = new BrokerService();
        broker.getSystemUsage().getMemoryUsage().setLimit(1 * 1024 * 1024); //1MB
        broker.deleteAllMessages();

        PolicyMap policyMap = new PolicyMap();
        PolicyEntry policyEntry = new PolicyEntry();
        policyEntry.setProducerFlowControl(false);
        policyMap.put(new ActiveMQQueue(">"), policyEntry);
View Full Code Here

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

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;
    }

   @Test
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.