Search in sources :

Example 6 with PagingManagerImpl

use of org.apache.activemq.artemis.core.paging.impl.PagingManagerImpl in project activemq-artemis by apache.

the class ReplicationTest method createPageManager.

protected PagingManager createPageManager(final StorageManager storageManager, final Configuration configuration, final ExecutorFactory executorFactory, final HierarchicalRepository<AddressSettings> addressSettingsRepository) throws Exception {
    PagingManager paging = new PagingManagerImpl(new PagingStoreFactoryNIO(storageManager, configuration.getPagingLocation(), 1000, null, executorFactory, false, null), addressSettingsRepository);
    paging.start();
    return paging;
}
Also used : PagingStoreFactoryNIO(org.apache.activemq.artemis.core.paging.impl.PagingStoreFactoryNIO) PagingManager(org.apache.activemq.artemis.core.paging.PagingManager) PagingManagerImpl(org.apache.activemq.artemis.core.paging.impl.PagingManagerImpl)

Aggregations

PagingManagerImpl (org.apache.activemq.artemis.core.paging.impl.PagingManagerImpl)6 PagingStoreFactoryNIO (org.apache.activemq.artemis.core.paging.impl.PagingStoreFactoryNIO)6 AddressSettings (org.apache.activemq.artemis.core.settings.impl.AddressSettings)4 HierarchicalObjectRepository (org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository)4 StorageManager (org.apache.activemq.artemis.core.persistence.StorageManager)3 NullStorageManager (org.apache.activemq.artemis.core.persistence.impl.nullpm.NullStorageManager)3 ExecutorService (java.util.concurrent.ExecutorService)2 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)2 PagingManager (org.apache.activemq.artemis.core.paging.PagingManager)2 PagingStore (org.apache.activemq.artemis.core.paging.PagingStore)2 PagingStoreFactory (org.apache.activemq.artemis.core.paging.PagingStoreFactory)2 OrderedExecutorFactory (org.apache.activemq.artemis.utils.actors.OrderedExecutorFactory)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)1 ScheduledThreadPoolExecutor (java.util.concurrent.ScheduledThreadPoolExecutor)1 ThreadFactory (java.util.concurrent.ThreadFactory)1 ActiveMQException (org.apache.activemq.artemis.api.core.ActiveMQException)1 ICoreMessage (org.apache.activemq.artemis.api.core.ICoreMessage)1 Configuration (org.apache.activemq.artemis.core.config.Configuration)1