PagingStoreFactory pageStoreFactory =
new PagingStoreFactoryNIO(storageManager, config.getPagingDirectory(), 1000L, scheduled, executorFactory, true,
null);
HierarchicalRepository<AddressSettings> addressSettingsRepository = new HierarchicalObjectRepository<>();
addressSettingsRepository.setDefault(new AddressSettings());
PagingManager manager = new PagingManagerImpl(pageStoreFactory, addressSettingsRepository);
manager.start();
SimpleString[] stores = manager.getStoreNames();
for (SimpleString store : stores)
{
PagingStore pageStore = manager.getPageStore(store);
if (pageStore != null)
{
String folder = pageStore.getFolder();
HornetQServerLogger.LOGGER.debug("Reading page store " + store + " folder = " + folder);