@Override public OperationContext getContext() { return manager.getContext(); }
@Override public void sync() throws Exception { if (syncTimer != null) { syncTimer.addSync(storageManager.getContext()); } else { ioSync(); } }
public OperationContext recoverContext() { OperationContext oldContext = storageManager.getContext(); manager.getServer().getStorageManager().setContext(serverSession.getSessionContext()); return oldContext; }
public OperationContext recoverContext() { OperationContext oldContext = storageManager.getContext(); manager.getServer().getStorageManager().setContext(serverSession.getSessionContext()); return oldContext; }
/** * @param cursorList * @param currentPage * @throws Exception */ protected void storeBookmark(ArrayList<PageSubscription> cursorList, Page currentPage) throws Exception { try { // First step: Move every cursor to the next bookmarked page (that was just created) for (PageSubscription cursor : cursorList) { cursor.confirmPosition(new PagePositionImpl(currentPage.getPageId(), -1)); } // we just need to make sure the storage is done.. // if the thread pool is full, we will just log it once instead of looping if (!storageManager.waitOnOperations(5000)) { ActiveMQServerLogger.LOGGER.problemCompletingOperations(storageManager.getContext()); } } finally { for (PageSubscription cursor : cursorList) { cursor.enableAutoCleanup(); } } }
@Override public Response propose(final Proposal proposal) throws Exception { OperationContext originalCtx = storageManager.getContext();
OperationContext ctx = storage.getContext();