public interface StorageManager extends HornetQComponent
| Modifier and Type | Method and Description |
|---|---|
void |
addGrouping(GroupBinding groupBinding) |
void |
addQueueBinding(long tx,
Binding binding) |
void |
afterCompleteOperations(IOAsyncTask run) |
void |
afterPageRead()
We need a safeguard in place to avoid too much concurrent IO happening on Paging,
otherwise the system may become irrensponsive if too many destinations are reading all the same time.
|
ByteBuffer |
allocateDirectBuffer(int size)
AIO has an optimized buffer which has a method to release it
instead of the way NIO will release data based on GC.
|
void |
beforePageRead()
We need a safeguard in place to avoid too much concurrent IO happening on Paging,
otherwise the system may become irrensponsive if too many destinations are reading all the same time.
|
void |
clearContext() |
void |
commit(long txID) |
void |
commit(long txID,
boolean lineUpContext) |
void |
commitBindings(long txID) |
void |
confirmPendingLargeMessage(long recordID) |
void |
confirmPendingLargeMessageTX(Transaction transaction,
long messageID,
long recordID) |
LargeServerMessage |
createLargeMessage() |
LargeServerMessage |
createLargeMessage(long id,
MessageInternal message) |
void |
deleteAddressSetting(SimpleString addressMatch) |
void |
deleteCursorAcknowledgeTransactional(long txID,
long ackID) |
void |
deleteDuplicateID(long recordID) |
void |
deleteDuplicateIDTransactional(long txID,
long recordID) |
void |
deleteGrouping(GroupBinding groupBinding) |
void |
deleteHeuristicCompletion(long id) |
void |
deleteIncrementRecord(long txID,
long recordID) |
void |
deleteMessage(long messageID) |
void |
deletePageCounter(long txID,
long recordID) |
void |
deletePageTransactional(long recordID) |
void |
deleteQueueBinding(long queueBindingID) |
void |
deleteSecurityRoles(SimpleString addressMatch) |
void |
freeDirectBuffer(ByteBuffer buffer)
AIO has an optimized buffer which has a method to release it
instead of the way NIO will release data based on GC.
|
long |
generateUniqueID() |
OperationContext |
getContext()
Get the context associated with the thread for later reuse
|
long |
getCurrentUniqueID() |
boolean |
isReplicated() |
void |
lineUpContext() |
JournalLoadInformation |
loadBindingJournal(List<QueueBindingInfo> queueBindingInfos,
List<GroupingInfo> groupingInfos) |
JournalLoadInformation[] |
loadInternalOnly()
This method is only useful at the backup side.
|
JournalLoadInformation |
loadMessageJournal(PostOffice postOffice,
PagingManager pagingManager,
ResourceManager resourceManager,
Map<Long,Queue> queues,
Map<Long,QueueBindingInfo> queueInfos,
Map<SimpleString,List<Pair<byte[],Long>>> duplicateIDMap,
Set<Pair<Long,Long>> pendingLargeMessages) |
OperationContext |
newContext(Executor executor)
It just creates an OperationContext without associating it
|
OperationContext |
newSingleThreadContext() |
void |
pageClosed(SimpleString storeName,
int pageNumber) |
void |
pageDeleted(SimpleString storeName,
int pageNumber) |
void |
pageWrite(PagedMessage message,
int pageNumber) |
void |
prepare(long txID,
Xid xid) |
List<PersistedAddressSetting> |
recoverAddressSettings() |
List<PersistedRoles> |
recoverPersistedRoles() |
void |
rollback(long txID) |
void |
rollbackBindings(long txID) |
void |
setContext(OperationContext context)
Set the context back to the thread
|
void |
stop(boolean ioCriticalError) |
void |
storeAcknowledge(long queueID,
long messageID) |
void |
storeAcknowledgeTransactional(long txID,
long queueID,
long messageID) |
void |
storeAddressSetting(PersistedAddressSetting addressSetting) |
void |
storeCursorAcknowledge(long queueID,
PagePosition position) |
void |
storeCursorAcknowledgeTransactional(long txID,
long queueID,
PagePosition position) |
void |
storeDuplicateID(SimpleString address,
byte[] duplID,
long recordID) |
void |
storeDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID) |
long |
storeHeuristicCompletion(Xid xid,
boolean isCommit) |
void |
storeMessage(ServerMessage message) |
void |
storeMessageTransactional(long txID,
ServerMessage message) |
long |
storePageCounter(long txID,
long queueID,
long value) |
long |
storePageCounterInc(long queueID,
int add) |
long |
storePageCounterInc(long txID,
long queueID,
int add) |
void |
storePageTransaction(long txID,
PageTransactionInfo pageTransaction) |
void |
storeReference(long queueID,
long messageID,
boolean last) |
void |
storeReferenceTransactional(long txID,
long queueID,
long messageID) |
void |
storeSecurityRoles(PersistedRoles persistedRoles) |
void |
updateDeliveryCount(MessageReference ref) |
void |
updateDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID) |
void |
updatePageTransaction(long txID,
PageTransactionInfo pageTransaction,
int depage) |
void |
updatePageTransaction(PageTransactionInfo pageTransaction,
int depage) |
void |
updateScheduledDeliveryTime(MessageReference ref) |
void |
updateScheduledDeliveryTimeTransactional(long txID,
MessageReference ref) |
void |
waitOnOperations()
Block until the operations are done.
|
boolean |
waitOnOperations(long timeout)
Block until the operations are done.
|
isStarted, start, stopOperationContext getContext()
void lineUpContext()
OperationContext newContext(Executor executor)
OperationContext newSingleThreadContext()
void setContext(OperationContext context)
void stop(boolean ioCriticalError)
throws Exception
ioCriticalError - is the server being stopped due to an IO critical errorExceptionvoid pageClosed(SimpleString storeName, int pageNumber)
void pageDeleted(SimpleString storeName, int pageNumber)
void pageWrite(PagedMessage message, int pageNumber)
boolean isReplicated()
void afterCompleteOperations(IOAsyncTask run)
boolean waitOnOperations(long timeout)
throws Exception
Exceptionvoid waitOnOperations()
throws Exception
Exceptionvoid beforePageRead()
throws Exception
Exceptionvoid afterPageRead()
throws Exception
ExceptionByteBuffer allocateDirectBuffer(int size)
void freeDirectBuffer(ByteBuffer buffer)
void clearContext()
long generateUniqueID()
long getCurrentUniqueID()
void confirmPendingLargeMessageTX(Transaction transaction, long messageID, long recordID) throws Exception
Exceptionvoid confirmPendingLargeMessage(long recordID)
throws Exception
Exceptionvoid storeMessage(ServerMessage message) throws Exception
Exceptionvoid storeReference(long queueID,
long messageID,
boolean last)
throws Exception
Exceptionvoid storeAcknowledge(long queueID,
long messageID)
throws Exception
Exceptionvoid storeCursorAcknowledge(long queueID,
PagePosition position)
throws Exception
Exceptionvoid updateDeliveryCount(MessageReference ref) throws Exception
Exceptionvoid updateScheduledDeliveryTime(MessageReference ref) throws Exception
Exceptionvoid storeDuplicateID(SimpleString address, byte[] duplID, long recordID) throws Exception
Exceptionvoid storeMessageTransactional(long txID,
ServerMessage message)
throws Exception
Exceptionvoid storeReferenceTransactional(long txID,
long queueID,
long messageID)
throws Exception
Exceptionvoid storeAcknowledgeTransactional(long txID,
long queueID,
long messageID)
throws Exception
Exceptionvoid storeCursorAcknowledgeTransactional(long txID,
long queueID,
PagePosition position)
throws Exception
Exceptionvoid deleteCursorAcknowledgeTransactional(long txID,
long ackID)
throws Exception
Exceptionvoid updateScheduledDeliveryTimeTransactional(long txID,
MessageReference ref)
throws Exception
Exceptionvoid storeDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID)
throws Exception
Exceptionvoid updateDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID)
throws Exception
Exceptionvoid deleteDuplicateIDTransactional(long txID,
long recordID)
throws Exception
ExceptionLargeServerMessage createLargeMessage()
LargeServerMessage createLargeMessage(long id, MessageInternal message) throws Exception
id - message - This is a temporary message that holds the parsed properties.
The remoting layer can't create a ServerMessage directly, then this will be replaced.Exceptionvoid storePageTransaction(long txID,
PageTransactionInfo pageTransaction)
throws Exception
Exceptionvoid updatePageTransaction(long txID,
PageTransactionInfo pageTransaction,
int depage)
throws Exception
Exceptionvoid updatePageTransaction(PageTransactionInfo pageTransaction, int depage) throws Exception
Exceptionvoid deletePageTransactional(long recordID)
throws Exception
ExceptionJournalLoadInformation[] loadInternalOnly() throws Exception
ExceptionJournalLoadInformation loadMessageJournal(PostOffice postOffice, PagingManager pagingManager, ResourceManager resourceManager, Map<Long,Queue> queues, Map<Long,QueueBindingInfo> queueInfos, Map<SimpleString,List<Pair<byte[],Long>>> duplicateIDMap, Set<Pair<Long,Long>> pendingLargeMessages) throws Exception
Exceptionlong storeHeuristicCompletion(Xid xid, boolean isCommit) throws Exception
Exceptionvoid deleteHeuristicCompletion(long id)
throws Exception
ExceptionJournalLoadInformation loadBindingJournal(List<QueueBindingInfo> queueBindingInfos, List<GroupingInfo> groupingInfos) throws Exception
Exceptionvoid addGrouping(GroupBinding groupBinding) throws Exception
Exceptionvoid deleteGrouping(GroupBinding groupBinding) throws Exception
Exceptionvoid storeAddressSetting(PersistedAddressSetting addressSetting) throws Exception
Exceptionvoid deleteAddressSetting(SimpleString addressMatch) throws Exception
ExceptionList<PersistedAddressSetting> recoverAddressSettings() throws Exception
Exceptionvoid storeSecurityRoles(PersistedRoles persistedRoles) throws Exception
Exceptionvoid deleteSecurityRoles(SimpleString addressMatch) throws Exception
ExceptionList<PersistedRoles> recoverPersistedRoles() throws Exception
Exceptionlong storePageCounter(long txID,
long queueID,
long value)
throws Exception
Exceptionvoid deleteIncrementRecord(long txID,
long recordID)
throws Exception
Exceptionvoid deletePageCounter(long txID,
long recordID)
throws Exception
Exceptionlong storePageCounterInc(long txID,
long queueID,
int add)
throws Exception
ExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.