|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.paging.impl.PagingStoreImpl
public class PagingStoreImpl
PagingStore
Constructor Summary | |
---|---|
PagingStoreImpl(PagingManager pagingManager,
StorageManager storageManager,
PostOffice postOffice,
SequentialFileFactory fileFactory,
PagingStoreFactory storeFactory,
SimpleString storeName,
AddressSettings addressSettings,
java.util.concurrent.Executor executor)
|
Method Summary | |
---|---|
void |
addSize(long size)
|
protected Page |
createPage(int page)
|
Page |
depage()
It returns a Page out of the Page System without reading it. |
void |
forceAnotherPage()
|
long |
getAddressSize()
|
long |
getMaxSizeBytes()
Maximum number of bytes allowed in memory |
int |
getNumberOfPages()
|
long |
getPageSizeBytes()
|
SimpleString |
getStoreName()
|
boolean |
isDropWhenMaxSize()
|
boolean |
isPaging()
|
boolean |
isStarted()
|
boolean |
page(PagedMessage message,
boolean sync,
boolean duplicateDetection)
|
boolean |
readPage()
Depage one page-file, read it and send it to the pagingManager / postoffice |
void |
start()
|
boolean |
startDepaging()
|
boolean |
startDepaging(java.util.concurrent.Executor executor)
When start depaging from a global perspective, we don't want all the stores depaging at once what could saturate the servers |
boolean |
startPaging()
|
void |
stop()
|
void |
sync()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PagingStoreImpl(PagingManager pagingManager, StorageManager storageManager, PostOffice postOffice, SequentialFileFactory fileFactory, PagingStoreFactory storeFactory, SimpleString storeName, AddressSettings addressSettings, java.util.concurrent.Executor executor)
Method Detail |
---|
public long getAddressSize()
getAddressSize
in interface PagingStore
public long getMaxSizeBytes()
getMaxSizeBytes
in interface PagingStore
public boolean isDropWhenMaxSize()
isDropWhenMaxSize
in interface PagingStore
public long getPageSizeBytes()
getPageSizeBytes
in interface PagingStore
public boolean isPaging()
isPaging
in interface PagingStore
public int getNumberOfPages()
getNumberOfPages
in interface PagingStore
public SimpleString getStoreName()
getStoreName
in interface PagingStore
public void addSize(long size) throws java.lang.Exception
addSize
in interface PagingStore
java.lang.Exception
public boolean page(PagedMessage message, boolean sync, boolean duplicateDetection) throws java.lang.Exception
page
in interface PagingStore
java.lang.Exception
public void sync() throws java.lang.Exception
sync
in interface PagingStore
java.lang.Exception
public boolean startDepaging()
startDepaging
in interface PagingStore
public boolean startDepaging(java.util.concurrent.Executor executor)
PagingStore
startDepaging
in interface PagingStore
public boolean isStarted()
isStarted
in interface MessagingComponent
public void stop() throws java.lang.Exception
stop
in interface MessagingComponent
java.lang.Exception
public void start() throws java.lang.Exception
start
in interface MessagingComponent
java.lang.Exception
public boolean startPaging() throws java.lang.Exception
startPaging
in interface PagingStore
java.lang.Exception
public boolean readPage() throws java.lang.Exception
readPage
in interface PagingStore
java.lang.Exception
public void forceAnotherPage() throws java.lang.Exception
forceAnotherPage
in interface TestSupportPageStore
java.lang.Exception
public Page depage() throws java.lang.Exception
depage
in interface TestSupportPageStore
java.lang.Exception
- Note: This should still be part of the interface, even though JBossMessaging only uses through theprotected Page createPage(int page) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |