use of org.apache.activemq.leveldb.LevelDBStore in project activemq-artemis by apache.
the class QueueConnectionMemoryTest method configureBroker.
@Override
protected void configureBroker(BrokerService answer, String uri) throws Exception {
LevelDBStore adaptor = new LevelDBStore();
answer.setPersistenceAdapter(adaptor);
answer.addConnector(uri);
answer.setDeleteAllMessagesOnStartup(true);
}
use of org.apache.activemq.leveldb.LevelDBStore in project activemq-artemis by apache.
the class ThreeBrokerVirtualTopicNetworkLevelDBTest method configurePersistenceAdapter.
@Override
protected void configurePersistenceAdapter(BrokerService broker) throws IOException {
File dataFileDir = new File("target/test-data/leveldb/" + broker.getBrokerName());
LevelDBStore adapter = new LevelDBStore();
adapter.setDirectory(dataFileDir);
broker.setPersistenceAdapter(adapter);
}
use of org.apache.activemq.leveldb.LevelDBStore in project activemq-artemis by apache.
the class QueueMasterSlaveSingleUrlTest method configureSharedPersistenceAdapter.
private void configureSharedPersistenceAdapter(BrokerService broker) throws Exception {
LevelDBStore adapter = new LevelDBStore();
adapter.setDirectory(new File("shared"));
broker.setPersistenceAdapter(adapter);
}
use of org.apache.activemq.leveldb.LevelDBStore in project activemq-artemis by apache.
the class StoreQueueCursorLevelDBNoDuplicateTest method createBroker.
@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;
}
use of org.apache.activemq.leveldb.LevelDBStore in project activemq-artemis by apache.
the class LevelDBDurableSubscriptionTest method createPersistenceAdapter.
@Override
protected PersistenceAdapter createPersistenceAdapter() throws IOException {
File dataDir = new File("target/test-data/durableLevelDB");
LevelDBStore adaptor = new LevelDBStore();
adaptor.setDirectory(dataDir);
return adaptor;
}
Aggregations