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 Classes Modifier and Type Class Description classTempKahaDBStore.KahaDBMessageStore-
Nested 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 Constructor Description TempKahaDBStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallowIOResumption()voidbeginTransaction(ConnectionContext context)voidcheckpoint(boolean sync)voidcommitTransaction(ConnectionContext context)JobSchedulerStorecreateJobSchedulerStore()MessageStorecreateQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination)TopicMessageStorecreateTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination)TransactionStorecreateTransactionStore()voiddeleteAllMessages()Set<org.apache.activemq.command.ActiveMQDestination>getDestinations()longgetLastMessageBrokerSequenceId()longgetLastProducerSequenceId(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, unload
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.store.PersistenceAdapter
getDirectory, setDirectory
-
-
-
-
Method Detail
-
setBrokerName
public void setBrokerName(String brokerName)
- Specified by:
setBrokerNamein interfacePersistenceAdapter
-
setUsageManager
public void setUsageManager(SystemUsage usageManager)
- Specified by:
setUsageManagerin interfacePersistenceAdapter
-
createTransactionStore
public TransactionStore createTransactionStore() throws IOException
- 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
public void deleteAllMessages() throws IOException- Specified by:
deleteAllMessagesin interfacePersistenceAdapter- Throws:
IOException
-
getDestinations
public Set<org.apache.activemq.command.ActiveMQDestination> getDestinations()
- Specified by:
getDestinationsin interfacePersistenceAdapter
-
getLastMessageBrokerSequenceId
public long getLastMessageBrokerSequenceId() throws IOException- Specified by:
getLastMessageBrokerSequenceIdin interfacePersistenceAdapter- Throws:
IOException
-
size
public long size()
- Specified by:
sizein interfacePersistenceAdapter
-
beginTransaction
public void beginTransaction(ConnectionContext context) throws IOException
- Specified by:
beginTransactionin interfacePersistenceAdapter- Throws:
IOException
-
commitTransaction
public void commitTransaction(ConnectionContext context) throws IOException
- Specified by:
commitTransactionin interfacePersistenceAdapter- Throws:
IOException
-
rollbackTransaction
public void rollbackTransaction(ConnectionContext context) throws IOException
- Specified by:
rollbackTransactionin interfacePersistenceAdapter- Throws:
IOException
-
checkpoint
public void checkpoint(boolean sync) throws IOException- 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
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
load
public void load() throws IOException- Overrides:
loadin classTempMessageDatabase- Throws:
IOException
-
createJobSchedulerStore
public JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException
- Specified by:
createJobSchedulerStorein interfacePersistenceAdapter- Throws:
IOExceptionUnsupportedOperationException
-
-