public class KahaDBStore extends MessageDatabase implements PersistenceAdapter
| Modifier and Type | Class and Description |
|---|---|
class |
KahaDBStore.KahaDBMessageStore |
static interface |
KahaDBStore.StoreTask |
class |
KahaDBStore.StoreTaskExecutor |
MessageDatabase.LastAckMarshaller, MessageDatabase.MessageKeysMarshaller, MessageDatabase.Metadata, MessageDatabase.StoredDestinationMarshaller| Modifier and Type | Field and Description |
|---|---|
protected List<Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask>> |
asyncQueueMaps |
protected List<Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask>> |
asyncTopicMaps |
static int |
cancelledTaskModMetric |
static String |
PROPERTY_ASYNC_EXECUTOR_MAX_THREADS |
static String |
PROPERTY_CANCELED_TASK_MOD_METRIC |
protected ExecutorService |
queueExecutor |
protected ExecutorService |
topicExecutor |
ackedAndPrepared, archiveDataLogs, brokerService, checkpointThread, DEFAULT_DIRECTORY, deleteAllMessages, directory, directoryArchive, enableJournalDiskSyncs, failIfDatabaseIsLocked, forceRecoverIndex, indexDirectory, indexLock, journal, journalSize, LOG_SLOW_ACCESS_TIME, metadata, metadataMarshaller, opened, pageFile, preparedTransactions, PROPERTY_LOG_SLOW_ACCESS_TIME, rolledBackAcks, storedDestinations, UNMATCHED| Constructor and Description |
|---|
KahaDBStore() |
checkpointCleanup, close, forgetRecoveredAcks, getCheckpointInterval, getCleanupInterval, getDirectory, getDirectoryArchive, getExistingStoredDestination, getFailoverProducersAuditDepth, getIndexCacheSize, getIndexDirectory, getIndexLFUEvictionFactor, getIndexWriteBatchSize, getInProgressTxLocationRange, getJournal, getJournalFilesBeingReplicated, getJournalMaxFileLength, getJournalMaxWriteBatchSize, getLastAck, getLastUpdatePosition, getMaxFailoverProducersToTrack, getMetadata, getPageFile, getPreallocationScope, getPreallocationStrategy, getStoredDestination, getStoredMessageCount, getTransactions, incrementalRecover, isArchiveCorruptedIndex, isArchiveDataLogs, isCheckForCorruptJournalFiles, isChecksumJournalFiles, isDeleteAllMessages, isEnableIndexDiskSyncs, isEnableIndexPageCaching, isEnableIndexRecoveryFile, isEnableJournalDiskSyncs, isFailIfDatabaseIsLocked, isIgnoreMissingJournalfiles, isUseIndexLFRUEviction, key, load, load, open, process, process, process, process, process, process, process, process, processLocation, recoverIndex, setArchiveCorruptedIndex, setArchiveDataLogs, setBrokerService, setCheckForCorruptJournalFiles, setCheckpointInterval, setChecksumJournalFiles, setCleanupInterval, setDeleteAllMessages, setDirectory, setDirectoryArchive, setEnableIndexDiskSyncs, setEnableIndexPageCaching, setEnableIndexRecoveryFile, setEnableIndexWriteAsync, setEnableJournalDiskSyncs, setFailIfDatabaseIsLocked, setFailoverProducersAuditDepth, setIgnoreMissingJournalfiles, setIndexCacheSize, setIndexDirectory, setIndexLFUEvictionFactor, setIndexWriteBatchSize, setJournalMaxFileLength, setJournalMaxWriteBatchSize, setMaxFailoverProducersToTrack, setPreallocationScope, setPreallocationStrategy, setUseIndexLFRUEviction, store, store, store, store, toByteSequence, trackRecoveredAcks, unloadaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDirectory, setDirectorypublic static final String PROPERTY_CANCELED_TASK_MOD_METRIC
public static final int cancelledTaskModMetric
public static final String PROPERTY_ASYNC_EXECUTOR_MAX_THREADS
protected ExecutorService queueExecutor
protected ExecutorService topicExecutor
protected final List<Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask>> asyncQueueMaps
protected final List<Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask>> asyncTopicMaps
public KahaDBStore()
public void setBrokerName(String brokerName)
setBrokerName in interface PersistenceAdapterpublic void setUsageManager(SystemUsage usageManager)
setUsageManager in interface PersistenceAdapterpublic SystemUsage getUsageManager()
public boolean isConcurrentStoreAndDispatchQueues()
public void setConcurrentStoreAndDispatchQueues(boolean concurrentStoreAndDispatch)
concurrentStoreAndDispatch - the concurrentStoreAndDispatch to setpublic boolean isConcurrentStoreAndDispatchTopics()
public void setConcurrentStoreAndDispatchTopics(boolean concurrentStoreAndDispatch)
concurrentStoreAndDispatch - the concurrentStoreAndDispatch to setpublic boolean isConcurrentStoreAndDispatchTransactions()
public int getMaxAsyncJobs()
public void setMaxAsyncJobs(int maxAsyncJobs)
maxAsyncJobs - the maxAsyncJobs to setpublic void doStart() throws Exception
doStart in class MessageDatabaseExceptionpublic void doStop(ServiceStopper stopper) throws Exception
doStop in class MessageDatabaseExceptionprotected org.apache.activemq.store.kahadb.KahaDBStore.StoreQueueTask removeQueueTask(KahaDBStore.KahaDBMessageStore store, org.apache.activemq.command.MessageId id)
protected void addQueueTask(KahaDBStore.KahaDBMessageStore store, org.apache.activemq.store.kahadb.KahaDBStore.StoreQueueTask task) throws IOException
IOExceptionprotected org.apache.activemq.store.kahadb.KahaDBStore.StoreTopicTask removeTopicTask(org.apache.activemq.store.kahadb.KahaDBStore.KahaDBTopicMessageStore store, org.apache.activemq.command.MessageId id)
protected void addTopicTask(org.apache.activemq.store.kahadb.KahaDBStore.KahaDBTopicMessageStore store, org.apache.activemq.store.kahadb.KahaDBStore.StoreTopicTask task) throws IOException
IOExceptionpublic TransactionStore createTransactionStore() throws IOException
createTransactionStore in interface PersistenceAdapterIOExceptionpublic boolean getForceRecoverIndex()
public void setForceRecoverIndex(boolean forceRecoverIndex)
public MessageStore createQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination) throws IOException
createQueueMessageStore in interface PersistenceAdapterIOExceptionpublic TopicMessageStore createTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination) throws IOException
createTopicMessageStore in interface PersistenceAdapterIOExceptionpublic void removeQueueMessageStore(org.apache.activemq.command.ActiveMQQueue destination)
removeQueueMessageStore in interface PersistenceAdapterdestination - Destination to forgetpublic void removeTopicMessageStore(org.apache.activemq.command.ActiveMQTopic destination)
removeTopicMessageStore in interface PersistenceAdapterdestination - Destination to forgetpublic void deleteAllMessages() throws IOException
deleteAllMessages in interface PersistenceAdapterIOExceptionpublic Set<org.apache.activemq.command.ActiveMQDestination> getDestinations()
getDestinations in interface PersistenceAdapterpublic long getLastMessageBrokerSequenceId() throws IOException
getLastMessageBrokerSequenceId in interface PersistenceAdapterIOExceptionpublic long getLastProducerSequenceId(org.apache.activemq.command.ProducerId id)
getLastProducerSequenceId in interface PersistenceAdapterpublic long size()
size in interface PersistenceAdapterpublic void beginTransaction(ConnectionContext context) throws IOException
beginTransaction in interface PersistenceAdapterIOExceptionpublic void commitTransaction(ConnectionContext context) throws IOException
commitTransaction in interface PersistenceAdapterIOExceptionpublic void rollbackTransaction(ConnectionContext context) throws IOException
rollbackTransaction in interface PersistenceAdapterIOExceptionpublic void checkpoint(boolean sync) throws IOException
checkpoint in interface PersistenceAdapterIOExceptionpublic TransactionIdTransformer getTransactionIdTransformer()
public void setTransactionIdTransformer(TransactionIdTransformer transactionIdTransformer)
public JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException
createJobSchedulerStore in interface PersistenceAdapterIOExceptionUnsupportedOperationExceptionCopyright © 2005–2017 FuseSource, Corp.. All rights reserved.