public class NullStorageManager extends Object implements StorageManager
| Constructor and Description |
|---|
NullStorageManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGrouping(GroupBinding groupBinding) |
void |
addQueueBinding(Binding queueBinding) |
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 |
completeOperations() |
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 txID) |
void |
deleteIncrementRecord(long txID,
long recordID) |
void |
deleteMessage(long messageID) |
void |
deleteMessageTransactional(long txID,
long messageID,
long queueID) |
void |
deletePageCounter(long txID,
long recordID) |
void |
deletePageTransactional(long recordID) |
void |
deletePageTransactional(long txID,
long messageID) |
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() |
boolean |
isStarted() |
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>> pendingLM) |
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 |
setReplicator(ReplicationManager replicator) |
void |
setUniqueIDSequence(long id) |
void |
start() |
void |
stop() |
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 |
storeMessageReferenceScheduled(long queueID,
long messageID,
long scheduledDeliveryTime) |
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 |
sync() |
void |
updateDeliveryCount(MessageReference ref) |
void |
updateDuplicateID(SimpleString address,
byte[] duplID,
long recordID) |
void |
updateDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID) |
void |
updatePageTransaction(long txID,
PageTransactionInfo pageTransaction) |
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.
|
public void sync()
public void addQueueBinding(Binding queueBinding) throws Exception
Exceptionpublic void deleteQueueBinding(long queueBindingID)
throws Exception
deleteQueueBinding in interface StorageManagerExceptionpublic void commit(long txID)
throws Exception
commit in interface StorageManagerExceptionpublic JournalLoadInformation loadBindingJournal(List<QueueBindingInfo> queueBindingInfos, List<GroupingInfo> groupingInfos) throws Exception
loadBindingJournal in interface StorageManagerExceptionpublic void prepare(long txID,
Xid xid)
throws Exception
prepare in interface StorageManagerExceptionpublic void rollback(long txID)
throws Exception
rollback in interface StorageManagerExceptionpublic void rollbackBindings(long txID)
throws Exception
rollbackBindings in interface StorageManagerExceptionpublic void commitBindings(long txID)
throws Exception
commitBindings in interface StorageManagerExceptionpublic void storeReference(long queueID,
long messageID,
boolean last)
throws Exception
storeReference in interface StorageManagerExceptionpublic void storeReferenceTransactional(long txID,
long queueID,
long messageID)
throws Exception
storeReferenceTransactional in interface StorageManagerExceptionpublic void storeAcknowledge(long queueID,
long messageID)
throws Exception
storeAcknowledge in interface StorageManagerExceptionpublic void storeMessageReferenceScheduled(long queueID,
long messageID,
long scheduledDeliveryTime)
throws Exception
Exceptionpublic void storeAcknowledgeTransactional(long txID,
long queueID,
long messageiD)
throws Exception
storeAcknowledgeTransactional in interface StorageManagerExceptionpublic void deleteMessage(long messageID)
throws Exception
deleteMessage in interface StorageManagerExceptionpublic void deletePageTransactional(long txID,
long messageID)
throws Exception
Exceptionpublic void storeMessage(ServerMessage message) throws Exception
storeMessage in interface StorageManagerExceptionpublic void storeMessageTransactional(long txID,
ServerMessage message)
throws Exception
storeMessageTransactional in interface StorageManagerExceptionpublic void updateScheduledDeliveryTime(MessageReference ref) throws Exception
updateScheduledDeliveryTime in interface StorageManagerExceptionpublic void updateScheduledDeliveryTimeTransactional(long txID,
MessageReference ref)
throws Exception
updateScheduledDeliveryTimeTransactional in interface StorageManagerExceptionpublic void storePageTransaction(long txID,
PageTransactionInfo pageTransaction)
throws Exception
storePageTransaction in interface StorageManagerExceptionpublic void updatePageTransaction(long txID,
PageTransactionInfo pageTransaction)
throws Exception
Exceptionpublic void updateDeliveryCount(MessageReference ref) throws Exception
updateDeliveryCount in interface StorageManagerExceptionpublic void storeDuplicateID(SimpleString address, byte[] duplID, long recordID) throws Exception
storeDuplicateID in interface StorageManagerExceptionpublic void storeDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID)
throws Exception
storeDuplicateIDTransactional in interface StorageManagerExceptionpublic void updateDuplicateID(SimpleString address, byte[] duplID, long recordID) throws Exception
Exceptionpublic void updateDuplicateIDTransactional(long txID,
SimpleString address,
byte[] duplID,
long recordID)
throws Exception
updateDuplicateIDTransactional in interface StorageManagerExceptionpublic long storeHeuristicCompletion(Xid xid, boolean isCommit) throws Exception
storeHeuristicCompletion in interface StorageManagerExceptionpublic void deleteHeuristicCompletion(long txID)
throws Exception
deleteHeuristicCompletion in interface StorageManagerExceptionpublic void addQueueBinding(long tx,
Binding binding)
throws Exception
addQueueBinding in interface StorageManagerExceptionpublic LargeServerMessage createLargeMessage()
createLargeMessage in interface StorageManagerpublic LargeServerMessage createLargeMessage(long id, MessageInternal message)
createLargeMessage in interface StorageManagermessage - This is a temporary message that holds the parsed properties.
The remoting layer can't create a ServerMessage directly, then this will be replaced.public long generateUniqueID()
generateUniqueID in interface StorageManagerpublic long getCurrentUniqueID()
getCurrentUniqueID in interface StorageManagerpublic void setUniqueIDSequence(long id)
public void start()
throws Exception
start in interface HornetQComponentExceptionpublic void stop()
throws Exception
stop in interface HornetQComponentExceptionpublic boolean isStarted()
isStarted in interface HornetQComponentpublic void deleteMessageTransactional(long txID,
long messageID,
long queueID)
throws Exception
Exceptionpublic 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>> pendingLM) throws Exception
loadMessageJournal in interface StorageManagerExceptionpublic void deleteDuplicateIDTransactional(long txID,
long recordID)
throws Exception
deleteDuplicateIDTransactional in interface StorageManagerExceptionpublic void deleteDuplicateID(long recordID)
throws Exception
deleteDuplicateID in interface StorageManagerExceptionpublic JournalLoadInformation[] loadInternalOnly() throws Exception
StorageManagerloadInternalOnly in interface StorageManagerExceptionpublic boolean isReplicated()
isReplicated in interface StorageManagerpublic void completeOperations()
public void pageClosed(SimpleString storeName, int pageNumber)
pageClosed in interface StorageManagerpublic void pageDeleted(SimpleString storeName, int pageNumber)
pageDeleted in interface StorageManagerpublic void pageWrite(PagedMessage message, int pageNumber)
pageWrite in interface StorageManagerpublic void addGrouping(GroupBinding groupBinding) throws Exception
addGrouping in interface StorageManagerExceptionpublic void deleteGrouping(GroupBinding groupBinding) throws Exception
deleteGrouping in interface StorageManagerExceptionpublic boolean waitOnOperations(long timeout)
throws Exception
StorageManagerwaitOnOperations in interface StorageManagerExceptionpublic void setReplicator(ReplicationManager replicator)
public void afterCompleteOperations(IOAsyncTask run)
afterCompleteOperations in interface StorageManagerpublic void waitOnOperations()
throws Exception
StorageManagerwaitOnOperations in interface StorageManagerExceptionpublic OperationContext getContext()
StorageManagergetContext in interface StorageManagerpublic OperationContext newContext(Executor executor)
StorageManagernewContext in interface StorageManagerpublic OperationContext newSingleThreadContext()
newSingleThreadContext in interface StorageManagerpublic void setContext(OperationContext context)
StorageManagersetContext in interface StorageManagerpublic void clearContext()
clearContext in interface StorageManagerpublic List<PersistedAddressSetting> recoverAddressSettings() throws Exception
recoverAddressSettings in interface StorageManagerExceptionpublic void storeAddressSetting(PersistedAddressSetting addressSetting) throws Exception
storeAddressSetting in interface StorageManagerExceptionpublic List<PersistedRoles> recoverPersistedRoles() throws Exception
recoverPersistedRoles in interface StorageManagerExceptionpublic void storeSecurityRoles(PersistedRoles persistedRoles) throws Exception
storeSecurityRoles in interface StorageManagerExceptionpublic void deleteAddressSetting(SimpleString addressMatch) throws Exception
deleteAddressSetting in interface StorageManagerExceptionpublic void deleteSecurityRoles(SimpleString addressMatch) throws Exception
deleteSecurityRoles in interface StorageManagerExceptionpublic void deletePageTransactional(long recordID)
throws Exception
deletePageTransactional in interface StorageManagerExceptionpublic void updatePageTransaction(long txID,
PageTransactionInfo pageTransaction,
int depage)
throws Exception
updatePageTransaction in interface StorageManagerExceptionpublic void storeCursorAcknowledge(long queueID,
PagePosition position)
storeCursorAcknowledge in interface StorageManagerpublic void storeCursorAcknowledgeTransactional(long txID,
long queueID,
PagePosition position)
storeCursorAcknowledgeTransactional in interface StorageManagerpublic void deleteCursorAcknowledgeTransactional(long txID,
long ackID)
throws Exception
deleteCursorAcknowledgeTransactional in interface StorageManagerExceptionpublic void updatePageTransaction(PageTransactionInfo pageTransaction, int depage) throws Exception
updatePageTransaction in interface StorageManagerExceptionpublic long storePageCounter(long txID,
long queueID,
long value)
throws Exception
storePageCounter in interface StorageManagerExceptionpublic void deleteIncrementRecord(long txID,
long recordID)
throws Exception
deleteIncrementRecord in interface StorageManagerExceptionpublic void deletePageCounter(long txID,
long recordID)
throws Exception
deletePageCounter in interface StorageManagerExceptionpublic long storePageCounterInc(long txID,
long queueID,
int add)
throws Exception
storePageCounterInc in interface StorageManagerExceptionpublic long storePageCounterInc(long queueID,
int add)
throws Exception
storePageCounterInc in interface StorageManagerExceptionpublic void commit(long txID,
boolean lineUpContext)
throws Exception
commit in interface StorageManagerExceptionpublic void lineUpContext()
lineUpContext in interface StorageManagerpublic void confirmPendingLargeMessageTX(Transaction transaction, long messageID, long recordID) throws Exception
confirmPendingLargeMessageTX in interface StorageManagerExceptionpublic void confirmPendingLargeMessage(long recordID)
throws Exception
confirmPendingLargeMessage in interface StorageManagerExceptionpublic void stop(boolean ioCriticalError)
throws Exception
stop in interface StorageManagerioCriticalError - is the server being stopped due to an IO critical errorExceptionpublic void beforePageRead()
throws Exception
StorageManagerbeforePageRead in interface StorageManagerExceptionpublic void afterPageRead()
throws Exception
StorageManagerafterPageRead in interface StorageManagerExceptionpublic ByteBuffer allocateDirectBuffer(int size)
StorageManagerallocateDirectBuffer in interface StorageManagerpublic void freeDirectBuffer(ByteBuffer buffer)
StorageManagerfreeDirectBuffer in interface StorageManagerCopyright © 2012 JBoss by Red Hat. All Rights Reserved.