Search in sources :

Example 1 with LevelDBStore

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);
}
Also used : LevelDBStore(org.apache.activemq.leveldb.LevelDBStore)

Example 2 with LevelDBStore

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);
}
Also used : File(java.io.File) LevelDBStore(org.apache.activemq.leveldb.LevelDBStore)

Example 3 with LevelDBStore

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);
}
Also used : File(java.io.File) LevelDBStore(org.apache.activemq.leveldb.LevelDBStore)

Example 4 with LevelDBStore

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;
}
Also used : BrokerService(org.apache.activemq.broker.BrokerService) File(java.io.File) LevelDBStore(org.apache.activemq.leveldb.LevelDBStore)

Example 5 with LevelDBStore

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;
}
Also used : File(java.io.File) LevelDBStore(org.apache.activemq.leveldb.LevelDBStore)

Aggregations

LevelDBStore (org.apache.activemq.leveldb.LevelDBStore)12 File (java.io.File)10 BrokerService (org.apache.activemq.broker.BrokerService)2 KahaDBPersistenceAdapter (org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter)2 PolicyEntry (org.apache.activemq.broker.region.policy.PolicyEntry)1 PolicyMap (org.apache.activemq.broker.region.policy.PolicyMap)1