org.jboss.messaging.core.paging.impl
Interface TestSupportPageStore

All Superinterfaces:
MessagingComponent, PagingStore
All Known Implementing Classes:
PagingStoreImpl

public interface TestSupportPageStore
extends PagingStore

All the methods required to TestCases on PageStoreImpl

Author:
Clebert Suconic

Method Summary
 Page depage()
          Remove the first page from the Writing Queue.
 void forceAnotherPage()
           
 
Methods inherited from interface org.jboss.messaging.core.paging.PagingStore
addSize, getAddressSize, getMaxSizeBytes, getNumberOfPages, getPageSizeBytes, getStoreName, isDropWhenMaxSize, isPaging, page, readPage, startDepaging, startDepaging, startPaging, sync
 
Methods inherited from interface org.jboss.messaging.core.server.MessagingComponent
isStarted, start, stop
 

Method Detail

depage

Page depage()
            throws java.lang.Exception
Remove the first page from the Writing Queue. The file will still exist until Page.delete is called, So, case the system is reloaded the same Page will be loaded back if delete is not called.

Returns:
Throws:
java.lang.Exception - Note: This should still be part of the interface, even though JBossMessaging only uses through the

forceAnotherPage

void forceAnotherPage()
                      throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.