Class PagingStoreFactoryNIO
- java.lang.Object
-
- org.apache.activemq.artemis.core.paging.impl.PagingStoreFactoryNIO
-
- All Implemented Interfaces:
PagingStoreFactory
public class PagingStoreFactoryNIO extends Object implements PagingStoreFactory
Integration point between Paging and NIO
-
-
Field Summary
Fields Modifier and Type Field Description static StringADDRESS_FILE
-
Constructor Summary
Constructors Constructor Description PagingStoreFactoryNIO(StorageManager storageManager, File directory, long syncTimeout, ScheduledExecutorService scheduledExecutor, ExecutorFactory executorFactory, ExecutorFactory ioExecutorFactory, boolean syncNonTransactional, IOCriticalErrorListener critialErrorListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOCriticalErrorListenergetCritialErrorListener()FilegetDirectory()ExecutorFactorygetExecutorFactory()PagingManagergetPagingManager()ScheduledExecutorServicegetScheduledExecutor()StorageManagergetStorageManager()longgetSyncTimeout()voidinjectMonitor(FileStoreMonitor monitor)booleanisSyncNonTransactional()PageCursorProvidernewCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, ArtemisExecutor executor)ExecutornewExecutor()protected SequentialFileFactorynewFileFactory(String directoryName)SequentialFileFactorynewFileFactory(SimpleString address)PagingStorenewStore(SimpleString address, AddressSettings settings)List<PagingStore>reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository)voidremoveFileFactory(SequentialFileFactory fileFactory)voidsetPagingManager(PagingManager pagingManager)voidstop()
-
-
-
Field Detail
-
ADDRESS_FILE
public static final String ADDRESS_FILE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PagingStoreFactoryNIO
public PagingStoreFactoryNIO(StorageManager storageManager, File directory, long syncTimeout, ScheduledExecutorService scheduledExecutor, ExecutorFactory executorFactory, ExecutorFactory ioExecutorFactory, boolean syncNonTransactional, IOCriticalErrorListener critialErrorListener)
-
-
Method Detail
-
getDirectory
public File getDirectory()
-
getExecutorFactory
public ExecutorFactory getExecutorFactory()
-
isSyncNonTransactional
public boolean isSyncNonTransactional()
-
getPagingManager
public PagingManager getPagingManager()
-
getSyncTimeout
public long getSyncTimeout()
-
getStorageManager
public StorageManager getStorageManager()
-
getCritialErrorListener
public IOCriticalErrorListener getCritialErrorListener()
-
getScheduledExecutor
public ScheduledExecutorService getScheduledExecutor()
- Specified by:
getScheduledExecutorin interfacePagingStoreFactory
-
newExecutor
public Executor newExecutor()
- Specified by:
newExecutorin interfacePagingStoreFactory
-
stop
public void stop()
- Specified by:
stopin interfacePagingStoreFactory
-
injectMonitor
public void injectMonitor(FileStoreMonitor monitor) throws Exception
- Specified by:
injectMonitorin interfacePagingStoreFactory- Throws:
Exception
-
newCursorProvider
public PageCursorProvider newCursorProvider(PagingStore store, StorageManager storageManager, AddressSettings addressSettings, ArtemisExecutor executor)
- Specified by:
newCursorProviderin interfacePagingStoreFactory
-
newStore
public PagingStore newStore(SimpleString address, AddressSettings settings)
- Specified by:
newStorein interfacePagingStoreFactory
-
newFileFactory
public SequentialFileFactory newFileFactory(SimpleString address) throws Exception
- Specified by:
newFileFactoryin interfacePagingStoreFactory- Throws:
Exception
-
removeFileFactory
public void removeFileFactory(SequentialFileFactory fileFactory) throws Exception
- Specified by:
removeFileFactoryin interfacePagingStoreFactory- Throws:
Exception
-
setPagingManager
public void setPagingManager(PagingManager pagingManager)
- Specified by:
setPagingManagerin interfacePagingStoreFactory
-
reloadStores
public List<PagingStore> reloadStores(HierarchicalRepository<AddressSettings> addressSettingsRepository) throws Exception
- Specified by:
reloadStoresin interfacePagingStoreFactory- Throws:
Exception
-
newFileFactory
protected SequentialFileFactory newFileFactory(String directoryName)
-
-