Search in sources :

Example 1 with PList

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

the class FilePendingMessageCursorTestSupport method createBrokerWithTempStoreLimit.

private void createBrokerWithTempStoreLimit() throws Exception {
    brokerService = new BrokerService();
    brokerService.setUseJmx(false);
    SystemUsage usage = brokerService.getSystemUsage();
    usage.getTempUsage().setLimit(1025 * 1024 * 15);
    // put something in the temp store to on demand initialise it
    PList dud = brokerService.getTempDataStore().getPList("dud");
    dud.addFirst("A", new ByteSequence("A".getBytes()));
}
Also used : PList(org.apache.activemq.store.PList) SystemUsage(org.apache.activemq.usage.SystemUsage) BrokerService(org.apache.activemq.broker.BrokerService) ByteSequence(org.apache.activemq.util.ByteSequence)

Aggregations

BrokerService (org.apache.activemq.broker.BrokerService)1 PList (org.apache.activemq.store.PList)1 SystemUsage (org.apache.activemq.usage.SystemUsage)1 ByteSequence (org.apache.activemq.util.ByteSequence)1