Package org.apache.activemq.store.kahadb
Class TempKahaDBStore
java.lang.Object
org.apache.activemq.store.kahadb.TempMessageDatabase
org.apache.activemq.store.kahadb.TempKahaDBStore
- All Implemented Interfaces:
org.apache.activemq.broker.BrokerServiceAware,org.apache.activemq.Service,org.apache.activemq.store.PersistenceAdapter
public class TempKahaDBStore
extends TempMessageDatabase
implements org.apache.activemq.store.PersistenceAdapter, org.apache.activemq.broker.BrokerServiceAware
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.activemq.store.kahadb.TempMessageDatabase
TempMessageDatabase.MessageKeysMarshaller, TempMessageDatabase.StoredDestinationMarshaller -
Field Summary
Fields inherited from class org.apache.activemq.store.kahadb.TempMessageDatabase
CLOSED_STATE, destinations, directory, indexMutex, inflightTransactions, OPEN_STATE, opened, pageFile, preparedTransactions, started -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbeginTransaction(org.apache.activemq.broker.ConnectionContext context) voidcheckpoint(boolean sync) voidcommitTransaction(org.apache.activemq.broker.ConnectionContext context) org.apache.activemq.broker.scheduler.JobSchedulerStoreorg.apache.activemq.store.MessageStorecreateQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination) org.apache.activemq.store.TopicMessageStorecreateTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination) org.apache.activemq.store.TransactionStorevoidSet<org.apache.activemq.command.ActiveMQDestination>longlonggetLastProducerSequenceId(org.apache.activemq.command.ProducerId id) voidload()voidremoveQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination) Cleanup method to remove any state associated with the given destination.voidremoveTopicMessageStore(org.apache.activemq.command.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).voidrollbackTransaction(org.apache.activemq.broker.ConnectionContext context) voidsetBrokerName(String brokerName) voidsetBrokerService(org.apache.activemq.broker.BrokerService brokerService) voidsetUsageManager(org.apache.activemq.usage.SystemUsage usageManager) longsize()Methods inherited from class org.apache.activemq.store.kahadb.TempMessageDatabase
close, getDirectory, getIndexWriteBatchSize, getJournalFilesBeingReplicated, getPageFile, getStoredDestination, open, process, process, processAdd, processCommit, processPrepare, processRemove, processRollback, setDirectory, setEnableIndexWriteAsync, setIndexWriteBatchSize, start, stop, unloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.store.PersistenceAdapter
getDirectory, setDirectoryMethods inherited from interface org.apache.activemq.Service
start, stop
-
Constructor Details
-
TempKahaDBStore
public TempKahaDBStore()
-
-
Method Details
-
setBrokerName
- Specified by:
setBrokerNamein interfaceorg.apache.activemq.store.PersistenceAdapter
-
setUsageManager
public void setUsageManager(org.apache.activemq.usage.SystemUsage usageManager) - Specified by:
setUsageManagerin interfaceorg.apache.activemq.store.PersistenceAdapter
-
createTransactionStore
- Specified by:
createTransactionStorein interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
createQueueMessageStore
public org.apache.activemq.store.MessageStore createQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination) throws IOException - Specified by:
createQueueMessageStorein interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
createTopicMessageStore
public org.apache.activemq.store.TopicMessageStore createTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination) throws IOException - Specified by:
createTopicMessageStorein interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
removeQueueMessageStore
public void removeQueueMessageStore(org.apache.activemq.command.ActiveMQQueue 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).- Specified by:
removeQueueMessageStorein interfaceorg.apache.activemq.store.PersistenceAdapter- Parameters:
destination- Destination to forget
-
removeTopicMessageStore
public void removeTopicMessageStore(org.apache.activemq.command.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).- Specified by:
removeTopicMessageStorein interfaceorg.apache.activemq.store.PersistenceAdapter- Parameters:
destination- Destination to forget
-
deleteAllMessages
- Specified by:
deleteAllMessagesin interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
getDestinations
- Specified by:
getDestinationsin interfaceorg.apache.activemq.store.PersistenceAdapter
-
getLastMessageBrokerSequenceId
- Specified by:
getLastMessageBrokerSequenceIdin interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
size
public long size()- Specified by:
sizein interfaceorg.apache.activemq.store.PersistenceAdapter
-
beginTransaction
public void beginTransaction(org.apache.activemq.broker.ConnectionContext context) throws IOException - Specified by:
beginTransactionin interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
commitTransaction
public void commitTransaction(org.apache.activemq.broker.ConnectionContext context) throws IOException - Specified by:
commitTransactionin interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
rollbackTransaction
public void rollbackTransaction(org.apache.activemq.broker.ConnectionContext context) throws IOException - Specified by:
rollbackTransactionin interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
checkpoint
- Specified by:
checkpointin interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOException
-
getLastProducerSequenceId
public long getLastProducerSequenceId(org.apache.activemq.command.ProducerId id) - Specified by:
getLastProducerSequenceIdin interfaceorg.apache.activemq.store.PersistenceAdapter
-
allowIOResumption
public void allowIOResumption()- Specified by:
allowIOResumptionin interfaceorg.apache.activemq.store.PersistenceAdapter
-
setBrokerService
public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService) - Specified by:
setBrokerServicein interfaceorg.apache.activemq.broker.BrokerServiceAware
-
load
- Overrides:
loadin classTempMessageDatabase- Throws:
IOException
-
createJobSchedulerStore
public org.apache.activemq.broker.scheduler.JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException- Specified by:
createJobSchedulerStorein interfaceorg.apache.activemq.store.PersistenceAdapter- Throws:
IOExceptionUnsupportedOperationException
-