The implementation will take care of details such as PageSize.
The producers will write directly to PagingStore and that will decide what Page file should be used based on configured size
1383138413851386138713881389139013911392139313941395
} } public void requestProducerCredits(final SimpleString address, final int credits) throws Exception { PagingStore store = server.getPagingManager().getPageStore(address); if (!store.checkMemory(new Runnable() { public void run() { callback.sendProducerCreditsMessage(credits, address); }
1354135513561357135813591360136113621363136413651366
925926927928929930931932933
private void setPagingStore(final ServerMessage message) throws Exception { PagingStore store = pagingManager.getPageStore(message.getAddress()); message.setPagingStore(store); }
979980981982983984985986987988989
Transaction tx = context.getTransaction(); for (Map.Entry<SimpleString, RouteContextList> entry : context.getContexListing().entrySet()) { PagingStore store = pagingManager.getPageStore(entry.getKey()); if (storageManager.addToPage(store, message, context.getTransaction(), entry.getValue())) { if (message.isLargeMessage()) {
548549550551552553554555556
{ for (Entry<SimpleString, Collection<Integer>> entry : pageFilesToSync.entrySet()) { if (!started) return; PagingStore store = manager.getPageStore(entry.getKey()); store.sendPages(replicator, entry.getValue()); } }
564565566567568569570571572573574
throws Exception { Map<SimpleString, Collection<Integer>> info = new HashMap<SimpleString, Collection<Integer>>(); for (SimpleString storeName : pagingManager.getStoreNames()) { PagingStore store = pagingManager.getPageStore(storeName); info.put(storeName, store.getCurrentIds()); store.forceAnotherPage(); } return info; }
200320042005200620072008200920102011201220132014
QueueBindingInfo queueInfo = queueInfos.get(queueID); if (queueInfo != null) { SimpleString address = queueInfo.getAddress(); PagingStore store = pagingManager.getPageStore(address); subs = store.getCursorProvider().getSubscription(queueID); pageSubscriptions.put(queueID, subs); } } return subs;
930931932933934935936937938
984985986987988989990991992993994
134413451346134713481349135013511352135313541355
QueueBindingInfo queueInfo = queueInfos.get(queueID); if (queueInfo != null) { SimpleString address = queueInfo.getAddress(); PagingStore store = pagingManager.getPageStore(address); subs = store.getCursorProvier().getSubscription(queueID); pageSubscriptions.put(queueID, subs); } } return subs;