Search in sources :

Example 1 with KahaDBStore

use of org.apache.activemq.store.kahadb.KahaDBStore in project activemq-artemis by apache.

the class ThreeBrokerVirtualTopicNetworkTest method configurePersistenceAdapter.

protected void configurePersistenceAdapter(BrokerService broker) throws IOException {
    File dataFileDir = new File("target/test-amq-data/kahadb/" + broker.getBrokerName());
    KahaDBStore kaha = new KahaDBStore();
    kaha.setDirectory(dataFileDir);
    broker.setPersistenceAdapter(kaha);
}
Also used : KahaDBStore(org.apache.activemq.store.kahadb.KahaDBStore) File(java.io.File)

Example 2 with KahaDBStore

use of org.apache.activemq.store.kahadb.KahaDBStore in project activemq-artemis by apache.

the class SingleBrokerVirtualDestinationsWithWildcardTest method configurePersistenceAdapter.

protected void configurePersistenceAdapter(BrokerService broker) throws IOException {
    File dataFileDir = new File("target/test-amq-data/kahadb/" + broker.getBrokerName());
    KahaDBStore kaha = new KahaDBStore();
    kaha.setDirectory(dataFileDir);
    broker.setPersistenceAdapter(kaha);
}
Also used : KahaDBStore(org.apache.activemq.store.kahadb.KahaDBStore) File(java.io.File)

Example 3 with KahaDBStore

use of org.apache.activemq.store.kahadb.KahaDBStore in project activemq-artemis by apache.

the class TwoBrokerVirtualTopicForwardingTest method configurePersistenceAdapter.

protected void configurePersistenceAdapter(BrokerService broker) throws IOException {
    File dataFileDir = new File("target/test-amq-data/kahadb/" + broker.getBrokerName());
    KahaDBStore kaha = new KahaDBStore();
    kaha.setDirectory(dataFileDir);
    broker.setPersistenceAdapter(kaha);
}
Also used : KahaDBStore(org.apache.activemq.store.kahadb.KahaDBStore) File(java.io.File)

Example 4 with KahaDBStore

use of org.apache.activemq.store.kahadb.KahaDBStore in project activemq-artemis by apache.

the class StoreQueueCursorKahaDBNoDuplicateTest method createBroker.

@Override
protected BrokerService createBroker() throws Exception {
    BrokerService broker = super.createBroker();
    PersistenceAdapter persistenceAdapter = new KahaDBStore();
    persistenceAdapter.setDirectory(new File("target/activemq-data/kahadb"));
    broker.setPersistenceAdapter(persistenceAdapter);
    return broker;
}
Also used : KahaDBStore(org.apache.activemq.store.kahadb.KahaDBStore) BrokerService(org.apache.activemq.broker.BrokerService) File(java.io.File) PersistenceAdapter(org.apache.activemq.store.PersistenceAdapter)

Example 5 with KahaDBStore

use of org.apache.activemq.store.kahadb.KahaDBStore in project activemq-artemis by apache.

the class AbstractTwoBrokerNetworkConnectorWildcardIncludedDestinationTestSupport method configurePersistenceAdapter.

protected void configurePersistenceAdapter(BrokerService broker) throws IOException {
    File dataFileDir = new File("target/test-amq-data/kahadb/" + broker.getBrokerName());
    KahaDBStore kaha = new KahaDBStore();
    kaha.setDirectory(dataFileDir);
    broker.setPersistenceAdapter(kaha);
}
Also used : KahaDBStore(org.apache.activemq.store.kahadb.KahaDBStore) File(java.io.File)

Aggregations

KahaDBStore (org.apache.activemq.store.kahadb.KahaDBStore)10 File (java.io.File)8 PersistenceAdapter (org.apache.activemq.store.PersistenceAdapter)3 Connection (javax.jms.Connection)2 Message (javax.jms.Message)2 MessageConsumer (javax.jms.MessageConsumer)2 MessageListener (javax.jms.MessageListener)2 MessageProducer (javax.jms.MessageProducer)2 Session (javax.jms.Session)2 BrokerService (org.apache.activemq.broker.BrokerService)2 KahaDBPersistenceAdapter (org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter)2 CountDownLatch (java.util.concurrent.CountDownLatch)1 TransportConnector (org.apache.activemq.broker.TransportConnector)1