|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PagingManager
Look at the WIKI for more information.
+------------+ 1 +-------------+ N +------------+ N +-------+ 1 +----------------+ |PostOffice
|-------> |PagingManager|-------> |PagingStore
| ------> |Page
| ------> |SequentialFile
| +------------+ +-------------+ +------------+ +-------+ +----------------+ | 1 ^ | | | | | | 1 | N +-------------------+ +--------> | DestinationAdress | +-------------------+
Method Summary | |
---|---|
void |
activate()
|
long |
addSize(long size)
|
void |
addTransaction(PageTransactionInfo pageTransaction)
Point to inform/restoring Transactions used when the messages were added into paging |
long |
getGlobalPageSize()
|
long |
getMaxMemory()
|
PagingStore |
getPageStore(SimpleString address)
To return the PageStore associated with the address |
long |
getTotalMemory()
|
PageTransactionInfo |
getTransaction(long transactionID)
Point to inform/restoring Transactions used when the messages were added into paging |
boolean |
isBackup()
|
boolean |
isGlobalPageMode()
The system is paging because of global-page-mode |
boolean |
isPaging(SimpleString destination)
To be used by transactions only. |
boolean |
page(ServerMessage message,
boolean duplicateDetection)
Page, only if destination is in page mode. |
boolean |
page(ServerMessage message,
long transactionId,
boolean duplicateDetection)
Page, only if destination is in page mode. |
void |
reloadStores()
Reload previously created PagingStores into memory |
void |
removeTransaction(long transactionID)
|
void |
setGlobalPageMode(boolean globalMode)
During startup PostOffice may set GlobalPageMode as true |
void |
setPostOffice(PostOffice postOffice)
An injection point for the PostOffice to inject itself |
void |
startGlobalDepage()
|
void |
sync(java.util.Collection<SimpleString> destinationsToSync)
Sync current-pages on disk for these destinations |
Methods inherited from interface org.jboss.messaging.core.server.MessagingComponent |
---|
isStarted, start, stop |
Method Detail |
---|
void activate()
boolean isBackup()
boolean isGlobalPageMode()
void setGlobalPageMode(boolean globalMode)
PagingStore getPageStore(SimpleString address) throws java.lang.Exception
java.lang.Exception
void setPostOffice(PostOffice postOffice)
boolean isPaging(SimpleString destination) throws java.lang.Exception
destination
-
java.lang.Exception
boolean page(ServerMessage message, boolean duplicateDetection) throws java.lang.Exception
message
- sync
- - Sync should be called right after the write
java.lang.Exception
boolean page(ServerMessage message, long transactionId, boolean duplicateDetection) throws java.lang.Exception
message
-
java.lang.Exception
void addTransaction(PageTransactionInfo pageTransaction)
PageTransactionInfo getTransaction(long transactionID)
void sync(java.util.Collection<SimpleString> destinationsToSync) throws java.lang.Exception
java.lang.Exception
long getGlobalPageSize()
void removeTransaction(long transactionID)
transactionID
- long getMaxMemory()
long getTotalMemory()
long addSize(long size)
size
-
void startGlobalDepage()
void reloadStores() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |