public class MultiKahaDBPersistenceAdapter extends LockableServiceSupport implements PersistenceAdapter, BrokerServiceAware
PersistenceAdapter that supports
distribution of destinations across multiple kahaDB persistence adapters| Constructor and Description |
|---|
MultiKahaDBPersistenceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(ConnectionContext context) |
void |
checkpoint(boolean sync) |
void |
commitTransaction(ConnectionContext context) |
Locker |
createDefaultLocker() |
MessageStore |
createQueueMessageStore(ActiveMQQueue destination) |
TopicMessageStore |
createTopicMessageStore(ActiveMQTopic destination) |
TransactionStore |
createTransactionStore() |
void |
deleteAllMessages() |
void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
BrokerService |
getBrokerService() |
java.util.Set<ActiveMQDestination> |
getDestinations() |
java.io.File |
getDirectory() |
int |
getJournalMaxFileLength() |
int |
getJournalWriteBatchSize() |
long |
getLastMessageBrokerSequenceId() |
long |
getLastProducerSequenceId(ProducerId id) |
void |
init() |
boolean |
isLocalXid(TransactionId xid) |
void |
removeQueueMessageStore(ActiveMQQueue destination) |
void |
removeTopicMessageStore(ActiveMQTopic destination) |
void |
rollbackTransaction(ConnectionContext context) |
void |
setBrokerName(java.lang.String brokerName) |
void |
setBrokerService(BrokerService brokerService) |
void |
setDirectory(java.io.File directory) |
void |
setFilteredPersistenceAdapters(java.util.List entries)
Sets the FilteredKahaDBPersistenceAdapter entries
|
void |
setJournalMaxFileLength(int maxFileLength)
Set the max file length of the transaction journal
When set using Xbean, values of the form "20 Mb", "1024kb", and "1g" can
be used
|
void |
setJournalWriteBatchSize(int journalWriteBatchSize)
Set the max write batch size of the transaction journal
When set using Xbean, values of the form "20 Mb", "1024kb", and "1g" can
be used
|
void |
setTransactionStore(MultiKahaDBTransactionStore transactionStore) |
void |
setUsageManager(SystemUsage usageManager) |
long |
size() |
java.lang.String |
toString() |
getLocker, getLockKeepAlivePeriod, getScheduledThreadPoolExecutor, isUseLock, keepLockAlive, postStop, preStart, setLocker, setLockKeepAlivePeriod, setUseLock, stopBrokeraddServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stoppublic void setFilteredPersistenceAdapters(java.util.List entries)
public boolean isLocalXid(TransactionId xid)
public void beginTransaction(ConnectionContext context) throws java.io.IOException
beginTransaction in interface PersistenceAdapterjava.io.IOExceptionpublic void checkpoint(boolean sync)
throws java.io.IOException
checkpoint in interface PersistenceAdapterjava.io.IOExceptionpublic void commitTransaction(ConnectionContext context) throws java.io.IOException
commitTransaction in interface PersistenceAdapterjava.io.IOExceptionpublic MessageStore createQueueMessageStore(ActiveMQQueue destination) throws java.io.IOException
createQueueMessageStore in interface PersistenceAdapterjava.io.IOExceptionpublic TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws java.io.IOException
createTopicMessageStore in interface PersistenceAdapterjava.io.IOExceptionpublic TransactionStore createTransactionStore() throws java.io.IOException
createTransactionStore in interface PersistenceAdapterjava.io.IOExceptionpublic void deleteAllMessages()
throws java.io.IOException
deleteAllMessages in interface PersistenceAdapterjava.io.IOExceptionpublic java.util.Set<ActiveMQDestination> getDestinations()
getDestinations in interface PersistenceAdapterpublic long getLastMessageBrokerSequenceId()
throws java.io.IOException
getLastMessageBrokerSequenceId in interface PersistenceAdapterjava.io.IOExceptionpublic long getLastProducerSequenceId(ProducerId id) throws java.io.IOException
getLastProducerSequenceId in interface PersistenceAdapterjava.io.IOExceptionpublic void removeQueueMessageStore(ActiveMQQueue destination)
removeQueueMessageStore in interface PersistenceAdapterpublic void removeTopicMessageStore(ActiveMQTopic destination)
removeTopicMessageStore in interface PersistenceAdapterpublic void rollbackTransaction(ConnectionContext context) throws java.io.IOException
rollbackTransaction in interface PersistenceAdapterjava.io.IOExceptionpublic void setBrokerName(java.lang.String brokerName)
setBrokerName in interface PersistenceAdapterpublic void setUsageManager(SystemUsage usageManager)
setUsageManager in interface PersistenceAdapterpublic long size()
size in interface PersistenceAdapterpublic void doStart()
throws java.lang.Exception
doStart in class ServiceSupportjava.lang.Exceptionprotected void doStop(ServiceStopper stopper) throws java.lang.Exception
doStop in class ServiceSupportjava.lang.Exceptionpublic java.io.File getDirectory()
getDirectory in interface PersistenceAdapterpublic void setDirectory(java.io.File directory)
setDirectory in interface PersistenceAdapterpublic void init()
throws java.lang.Exception
init in class LockableServiceSupportjava.lang.Exceptionpublic void setBrokerService(BrokerService brokerService)
setBrokerService in interface BrokerServiceAwaresetBrokerService in class LockableServiceSupportpublic BrokerService getBrokerService()
getBrokerService in class LockableServiceSupportpublic void setTransactionStore(MultiKahaDBTransactionStore transactionStore)
public void setJournalMaxFileLength(int maxFileLength)
public int getJournalMaxFileLength()
public void setJournalWriteBatchSize(int journalWriteBatchSize)
public int getJournalWriteBatchSize()
public java.lang.String toString()
toString in class java.lang.Objectpublic Locker createDefaultLocker() throws java.io.IOException
createDefaultLocker in interface Lockablejava.io.IOExceptionCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.