|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.paging.impl.PagingManagerImpl
public class PagingManagerImpl
Look at the WIKI for more information.
Constructor Summary | |
---|---|
PagingManagerImpl(PagingStoreFactory pagingSPI,
StorageManager storageManager,
HierarchicalRepository<AddressSettings> addressSettingsRepository,
long maxGlobalSize,
long globalPageSize,
boolean syncNonTransactional,
boolean backup)
|
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 storeName)
stores is a ConcurrentHashMap, so we don't need to synchronize this method |
long |
getTotalMemory()
|
PageTransactionInfo |
getTransaction(long id)
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 |
isStarted()
|
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 id)
|
void |
setGlobalPageMode(boolean globalMode)
During startup PostOffice may set GlobalPageMode as true |
void |
setPostOffice(PostOffice postOffice)
this will be set by the postOffice itself. |
void |
start()
|
void |
startGlobalDepage()
|
void |
stop()
|
void |
sync(java.util.Collection<SimpleString> destinationsToSync)
Sync current-pages on disk for these destinations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PagingManagerImpl(PagingStoreFactory pagingSPI, StorageManager storageManager, HierarchicalRepository<AddressSettings> addressSettingsRepository, long maxGlobalSize, long globalPageSize, boolean syncNonTransactional, boolean backup)
Method Detail |
---|
public void activate()
activate
in interface PagingManager
public boolean isBackup()
isBackup
in interface PagingManager
public boolean isGlobalPageMode()
PagingManager
isGlobalPageMode
in interface PagingManager
public void setGlobalPageMode(boolean globalMode)
PagingManager
setGlobalPageMode
in interface PagingManager
public void reloadStores() throws java.lang.Exception
PagingManager
reloadStores
in interface PagingManager
java.lang.Exception
public PagingStore getPageStore(SimpleString storeName) throws java.lang.Exception
getPageStore
in interface PagingManager
java.lang.Exception
public void setPostOffice(PostOffice postOffice)
setPostOffice
in interface PagingManager
public long getGlobalPageSize()
getGlobalPageSize
in interface PagingManager
public boolean isPaging(SimpleString destination) throws java.lang.Exception
PagingManager
isPaging
in interface PagingManager
java.lang.Exception
public boolean page(ServerMessage message, long transactionId, boolean duplicateDetection) throws java.lang.Exception
PagingManager
page
in interface PagingManager
java.lang.Exception
public boolean page(ServerMessage message, boolean duplicateDetection) throws java.lang.Exception
PagingManager
page
in interface PagingManager
java.lang.Exception
public void addTransaction(PageTransactionInfo pageTransaction)
PagingManager
addTransaction
in interface PagingManager
public void removeTransaction(long id)
removeTransaction
in interface PagingManager
public PageTransactionInfo getTransaction(long id)
PagingManager
getTransaction
in interface PagingManager
public void sync(java.util.Collection<SimpleString> destinationsToSync) throws java.lang.Exception
PagingManager
sync
in interface PagingManager
java.lang.Exception
public boolean isStarted()
isStarted
in interface MessagingComponent
public void start() throws java.lang.Exception
start
in interface MessagingComponent
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface MessagingComponent
java.lang.Exception
public void startGlobalDepage()
startGlobalDepage
in interface PagingManager
public long getTotalMemory()
getTotalMemory
in interface PagingManager
public long addSize(long size)
addSize
in interface PagingManager
public long getMaxMemory()
getMaxMemory
in interface PagingManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |