public class TempKahaDBStore extends TempMessageDatabase implements PersistenceAdapter, BrokerServiceAware
| Modifier and Type | Class and Description |
|---|---|
class |
TempKahaDBStore.KahaDBMessageStore |
TempMessageDatabase.MessageKeysMarshaller, TempMessageDatabase.StoredDestinationMarshallerCLOSED_STATE, destinations, directory, indexMutex, inflightTransactions, OPEN_STATE, opened, pageFile, preparedTransactions, started| Constructor and Description |
|---|
TempKahaDBStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(ConnectionContext context)
This method starts a transaction on the persistent storage - which is
nothing to do with JMS or XA transactions - its purely a mechanism to
perform multiple writes to a persistent store in 1 transaction as a
performance optimization.
|
void |
checkpoint(boolean sync)
checkpoint any
|
void |
commitTransaction(ConnectionContext context)
Commit a persistence transaction
|
JobSchedulerStore |
createJobSchedulerStore()
Creates and returns a new Job Scheduler store instance.
|
MessageStore |
createQueueMessageStore(ActiveMQQueue destination)
Factory method to create a new queue message store with the given
destination name
|
TopicMessageStore |
createTopicMessageStore(ActiveMQTopic destination)
Factory method to create a new topic message store with the given
destination name
|
TransactionStore |
createTransactionStore()
Factory method to create a new persistent prepared transaction store for
XA recovery
|
void |
deleteAllMessages()
Delete's all the messages in the persistent store.
|
Set<ActiveMQDestination> |
getDestinations()
Returns a set of all the
ActiveMQDestination objects that the
persistence store is aware exist. |
long |
getLastMessageBrokerSequenceId() |
long |
getLastProducerSequenceId(ProducerId id)
return the last stored producer sequenceId for this producer Id used to
suppress duplicate sends on failover reconnect at the transport when a
reconnect occurs
|
void |
load() |
void |
removeQueueMessageStore(ActiveMQQueue destination)
Cleanup method to remove any state associated with the given destination.
|
void |
removeTopicMessageStore(ActiveMQTopic destination)
Cleanup method to remove any state associated with the given destination
This method does not stop the message store (it might not be cached).
|
void |
rollbackTransaction(ConnectionContext context)
Rollback a persistence transaction
|
void |
setBrokerName(String brokerName)
Set the name of the broker using the adapter
|
void |
setBrokerService(BrokerService brokerService) |
void |
setUsageManager(SystemUsage usageManager) |
long |
size()
A hint to return the size of the store on disk
|
close, getDirectory, getIndexWriteBatchSize, getJournalFilesBeingReplicated, getPageFile, getStoredDestination, open, process, process, processAdd, processCommit, processPrepare, processRemove, processRollback, setDirectory, setEnableIndexWriteAsync, setIndexWriteBatchSize, start, stop, unloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDirectory, setDirectorypublic TempKahaDBStore()
public void setBrokerName(String brokerName)
PersistenceAdaptersetBrokerName in interface PersistenceAdapterpublic void setUsageManager(SystemUsage usageManager)
setUsageManager in interface PersistenceAdapterusageManager - The UsageManager that is controlling the broker's memory
usage.public TransactionStore createTransactionStore() throws IOException
PersistenceAdaptercreateTransactionStore in interface PersistenceAdapterIOExceptionpublic MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException
PersistenceAdaptercreateQueueMessageStore in interface PersistenceAdapterIOExceptionpublic TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException
PersistenceAdaptercreateTopicMessageStore in interface PersistenceAdapterIOExceptionpublic void removeQueueMessageStore(ActiveMQQueue destination)
removeQueueMessageStore in interface PersistenceAdapterdestination - Destination to forgetpublic void removeTopicMessageStore(ActiveMQTopic destination)
removeTopicMessageStore in interface PersistenceAdapterdestination - Destination to forgetpublic void deleteAllMessages() throws IOException
PersistenceAdapterdeleteAllMessages in interface PersistenceAdapterIOExceptionpublic Set<ActiveMQDestination> getDestinations()
PersistenceAdapterActiveMQDestination objects that the
persistence store is aware exist.getDestinations in interface PersistenceAdapterpublic long getLastMessageBrokerSequenceId() throws IOException
getLastMessageBrokerSequenceId in interface PersistenceAdapterIOExceptionpublic long size()
PersistenceAdaptersize in interface PersistenceAdapterpublic void beginTransaction(ConnectionContext context) throws IOException
PersistenceAdapterbeginTransaction in interface PersistenceAdapterIOExceptionpublic void commitTransaction(ConnectionContext context) throws IOException
PersistenceAdaptercommitTransaction in interface PersistenceAdapterIOExceptionPersistenceAdapter.beginTransaction(ConnectionContext context)public void rollbackTransaction(ConnectionContext context) throws IOException
PersistenceAdapterrollbackTransaction in interface PersistenceAdapterIOExceptionPersistenceAdapter.beginTransaction(ConnectionContext context)public void checkpoint(boolean sync) throws IOException
PersistenceAdaptercheckpoint in interface PersistenceAdapterIOExceptionpublic long getLastProducerSequenceId(ProducerId id)
PersistenceAdaptergetLastProducerSequenceId in interface PersistenceAdapterid - the producerId to find a sequenceId forpublic void setBrokerService(BrokerService brokerService)
setBrokerService in interface BrokerServiceAwarepublic void load() throws IOException
load in class TempMessageDatabaseIOExceptionpublic JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException
PersistenceAdaptercreateJobSchedulerStore in interface PersistenceAdapterIOException - If an error occurs while creating the new JobSchedulerStore.UnsupportedOperationException - If this adapter does not provide its own
scheduler store implementation.Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.