public class PostOfficeJournalLoader extends Object implements JournalLoader
Modifier and Type | Field and Description |
---|---|
protected NodeManager |
nodeManager |
protected PagingManager |
pagingManager |
protected PostOffice |
postOffice |
Constructor and Description |
---|
PostOfficeJournalLoader(PostOffice postOffice,
PagingManager pagingManager,
StorageManager storageManager,
QueueFactory queueFactory,
NodeManager nodeManager,
ManagementService managementService,
GroupingHandler groupingHandler,
Configuration configuration) |
PostOfficeJournalLoader(PostOffice postOffice,
PagingManager pagingManager,
StorageManager storageManager,
QueueFactory queueFactory,
NodeManager nodeManager,
ManagementService managementService,
GroupingHandler groupingHandler,
Configuration configuration,
Map<Long,Queue> queues) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
void |
handleAddMessage(Map<Long,Map<Long,AddMessageRecord>> queueMap) |
void |
handleDuplicateIds(Map<SimpleString,List<Pair<byte[],Long>>> duplicateIDMap) |
void |
handleGroupingBindings(List<GroupingInfo> groupingInfos) |
void |
handleNoMessageReferences(Map<Long,Message> messages) |
void |
handlePreparedAcknowledge(long messageID,
List<MessageReference> referencesToAck,
long queueID) |
void |
handlePreparedSendMessage(Message message,
Transaction tx,
long queueID) |
void |
handlePreparedTransaction(Transaction tx,
List<MessageReference> referencesToAck,
Xid xid,
ResourceManager resourceManager) |
void |
initAddresses(Map<Long,AddressBindingInfo> addressBindingInfosMap,
List<AddressBindingInfo> addressBindingInfos) |
void |
initQueues(Map<Long,QueueBindingInfo> queueBindingInfosMap,
List<QueueBindingInfo> queueBindingInfos) |
void |
postLoad(Journal messageJournal,
ResourceManager resourceManager,
Map<SimpleString,List<Pair<byte[],Long>>> duplicateIDMap) |
void |
recoverPendingPageCounters(List<PageCountPending> pendingNonTXPageCounter)
This method will recover the counters after failures making sure the page counter doesn't get out of sync
|
protected final PostOffice postOffice
protected final PagingManager pagingManager
protected final NodeManager nodeManager
public PostOfficeJournalLoader(PostOffice postOffice, PagingManager pagingManager, StorageManager storageManager, QueueFactory queueFactory, NodeManager nodeManager, ManagementService managementService, GroupingHandler groupingHandler, Configuration configuration)
public PostOfficeJournalLoader(PostOffice postOffice, PagingManager pagingManager, StorageManager storageManager, QueueFactory queueFactory, NodeManager nodeManager, ManagementService managementService, GroupingHandler groupingHandler, Configuration configuration, Map<Long,Queue> queues)
public void initQueues(Map<Long,QueueBindingInfo> queueBindingInfosMap, List<QueueBindingInfo> queueBindingInfos) throws Exception
initQueues
in interface JournalLoader
Exception
public void initAddresses(Map<Long,AddressBindingInfo> addressBindingInfosMap, List<AddressBindingInfo> addressBindingInfos) throws Exception
initAddresses
in interface JournalLoader
Exception
public void handleAddMessage(Map<Long,Map<Long,AddMessageRecord>> queueMap) throws Exception
handleAddMessage
in interface JournalLoader
Exception
public void handleNoMessageReferences(Map<Long,Message> messages)
handleNoMessageReferences
in interface JournalLoader
public void handleGroupingBindings(List<GroupingInfo> groupingInfos)
handleGroupingBindings
in interface JournalLoader
public void handleDuplicateIds(Map<SimpleString,List<Pair<byte[],Long>>> duplicateIDMap) throws Exception
handleDuplicateIds
in interface JournalLoader
Exception
public void postLoad(Journal messageJournal, ResourceManager resourceManager, Map<SimpleString,List<Pair<byte[],Long>>> duplicateIDMap) throws Exception
postLoad
in interface JournalLoader
Exception
public void handlePreparedSendMessage(Message message, Transaction tx, long queueID) throws Exception
handlePreparedSendMessage
in interface JournalLoader
Exception
public void handlePreparedAcknowledge(long messageID, List<MessageReference> referencesToAck, long queueID) throws Exception
handlePreparedAcknowledge
in interface JournalLoader
Exception
public void handlePreparedTransaction(Transaction tx, List<MessageReference> referencesToAck, Xid xid, ResourceManager resourceManager) throws Exception
handlePreparedTransaction
in interface JournalLoader
Exception
public void recoverPendingPageCounters(List<PageCountPending> pendingNonTXPageCounter) throws Exception
recoverPendingPageCounters
in interface JournalLoader
pendingNonTXPageCounter
- Exception
public void cleanUp()
cleanUp
in interface JournalLoader
Copyright © 2018 JBoss by Red Hat. All rights reserved.