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, stop
OperationContext 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 errorException
void 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
Exception
void waitOnOperations() throws Exception
Exception
void beforePageRead() throws Exception
Exception
void afterPageRead() throws Exception
Exception
ByteBuffer allocateDirectBuffer(int size)
void freeDirectBuffer(ByteBuffer buffer)
void clearContext()
long generateUniqueID()
long getCurrentUniqueID()
void confirmPendingLargeMessageTX(Transaction transaction, long messageID, long recordID) throws Exception
Exception
void confirmPendingLargeMessage(long recordID) throws Exception
Exception
void storeMessage(ServerMessage message) throws Exception
Exception
void storeReference(long queueID, long messageID, boolean last) throws Exception
Exception
void storeAcknowledge(long queueID, long messageID) throws Exception
Exception
void storeCursorAcknowledge(long queueID, PagePosition position) throws Exception
Exception
void updateDeliveryCount(MessageReference ref) throws Exception
Exception
void updateScheduledDeliveryTime(MessageReference ref) throws Exception
Exception
void storeDuplicateID(SimpleString address, byte[] duplID, long recordID) throws Exception
Exception
void storeMessageTransactional(long txID, ServerMessage message) throws Exception
Exception
void storeReferenceTransactional(long txID, long queueID, long messageID) throws Exception
Exception
void storeAcknowledgeTransactional(long txID, long queueID, long messageID) throws Exception
Exception
void storeCursorAcknowledgeTransactional(long txID, long queueID, PagePosition position) throws Exception
Exception
void deleteCursorAcknowledgeTransactional(long txID, long ackID) throws Exception
Exception
void updateScheduledDeliveryTimeTransactional(long txID, MessageReference ref) throws Exception
Exception
void storeDuplicateIDTransactional(long txID, SimpleString address, byte[] duplID, long recordID) throws Exception
Exception
void updateDuplicateIDTransactional(long txID, SimpleString address, byte[] duplID, long recordID) throws Exception
Exception
void deleteDuplicateIDTransactional(long txID, long recordID) throws Exception
Exception
LargeServerMessage 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.Exception
void storePageTransaction(long txID, PageTransactionInfo pageTransaction) throws Exception
Exception
void updatePageTransaction(long txID, PageTransactionInfo pageTransaction, int depage) throws Exception
Exception
void updatePageTransaction(PageTransactionInfo pageTransaction, int depage) throws Exception
Exception
void deletePageTransactional(long recordID) throws Exception
Exception
JournalLoadInformation[] loadInternalOnly() throws Exception
Exception
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) throws Exception
Exception
long storeHeuristicCompletion(Xid xid, boolean isCommit) throws Exception
Exception
void deleteHeuristicCompletion(long id) throws Exception
Exception
JournalLoadInformation loadBindingJournal(List<QueueBindingInfo> queueBindingInfos, List<GroupingInfo> groupingInfos) throws Exception
Exception
void addGrouping(GroupBinding groupBinding) throws Exception
Exception
void deleteGrouping(GroupBinding groupBinding) throws Exception
Exception
void storeAddressSetting(PersistedAddressSetting addressSetting) throws Exception
Exception
void deleteAddressSetting(SimpleString addressMatch) throws Exception
Exception
List<PersistedAddressSetting> recoverAddressSettings() throws Exception
Exception
void storeSecurityRoles(PersistedRoles persistedRoles) throws Exception
Exception
void deleteSecurityRoles(SimpleString addressMatch) throws Exception
Exception
List<PersistedRoles> recoverPersistedRoles() throws Exception
Exception
long storePageCounter(long txID, long queueID, long value) throws Exception
Exception
void deleteIncrementRecord(long txID, long recordID) throws Exception
Exception
void deletePageCounter(long txID, long recordID) throws Exception
Exception
long storePageCounterInc(long txID, long queueID, int add) throws Exception
Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.