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:
BrokerServiceAware,org.apache.activemq.Service,PersistenceAdapter
public class TempKahaDBStore
extends TempMessageDatabase
implements PersistenceAdapter, 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(ConnectionContext context) voidcheckpoint(boolean sync) voidcommitTransaction(ConnectionContext context) createQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination) createTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination) voidSet<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(ConnectionContext context) voidsetBrokerName(String brokerName) voidsetBrokerService(BrokerService brokerService) voidsetUsageManager(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 interfacePersistenceAdapter
-
setUsageManager
- Specified by:
setUsageManagerin interfacePersistenceAdapter
-
createTransactionStore
- Specified by:
createTransactionStorein interfacePersistenceAdapter- Throws:
IOException
-
createQueueMessageStore
public MessageStore createQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination) throws IOException - Specified by:
createQueueMessageStorein interfacePersistenceAdapter- Throws:
IOException
-
createTopicMessageStore
public TopicMessageStore createTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination) throws IOException - Specified by:
createTopicMessageStorein interfacePersistenceAdapter- 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 interfacePersistenceAdapter- 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 interfacePersistenceAdapter- Parameters:
destination- Destination to forget
-
deleteAllMessages
- Specified by:
deleteAllMessagesin interfacePersistenceAdapter- Throws:
IOException
-
getDestinations
- Specified by:
getDestinationsin interfacePersistenceAdapter
-
getLastMessageBrokerSequenceId
- Specified by:
getLastMessageBrokerSequenceIdin interfacePersistenceAdapter- Throws:
IOException
-
size
public long size()- Specified by:
sizein interfacePersistenceAdapter
-
beginTransaction
- Specified by:
beginTransactionin interfacePersistenceAdapter- Throws:
IOException
-
commitTransaction
- Specified by:
commitTransactionin interfacePersistenceAdapter- Throws:
IOException
-
rollbackTransaction
- Specified by:
rollbackTransactionin interfacePersistenceAdapter- Throws:
IOException
-
checkpoint
- Specified by:
checkpointin interfacePersistenceAdapter- Throws:
IOException
-
getLastProducerSequenceId
public long getLastProducerSequenceId(org.apache.activemq.command.ProducerId id) - Specified by:
getLastProducerSequenceIdin interfacePersistenceAdapter
-
allowIOResumption
public void allowIOResumption()- Specified by:
allowIOResumptionin interfacePersistenceAdapter
-
setBrokerService
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
load
- Overrides:
loadin classTempMessageDatabase- Throws:
IOException
-
createJobSchedulerStore
public JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException- Specified by:
createJobSchedulerStorein interfacePersistenceAdapter- Throws:
IOExceptionUnsupportedOperationException
-