|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.store.kahadaptor.KahaPersistenceAdapter
public class KahaPersistenceAdapter
| Constructor Summary | |
|---|---|
KahaPersistenceAdapter(java.io.File dir)
|
|
| Method Summary | |
|---|---|
void |
beginTransaction(ConnectionContext context)
This method starts a transaction on the persistent storage - which is nothing to do with JMS or XA transactions - its purely a mechanism to perform multiple writes to a persistent store in 1 transaction as a performance optimization. |
void |
commitTransaction(ConnectionContext context)
Commit a persistence transaction |
MessageStore |
createQueueMessageStore(ActiveMQQueue destination)
Factory method to create a new queue message store with the given destination name |
TopicMessageStore |
createTopicMessageStore(ActiveMQTopic destination)
Factory method to create a new topic message store with the given destination name |
TransactionStore |
createTransactionStore()
Factory method to create a new persistent prepared transaction store for XA recovery |
void |
deleteAllMessages()
Delete's all the messages in the persistent store. |
java.util.Set |
getDestinations()
Returns a set of all the ActiveMQDestination
objects that the persistence store is aware exist. |
java.lang.String |
getIndexType()
|
long |
getLastMessageBrokerSequenceId()
|
protected ListContainer |
getListContainer(java.lang.Object id,
java.lang.String containerName)
|
protected MapContainer |
getMapContainer(java.lang.Object id,
java.lang.String containerName)
|
long |
getMaxDataFileLength()
|
protected Store |
getStore()
|
boolean |
isUseExternalMessageReferences()
|
protected MessageStore |
retrieveMessageStore(java.lang.Object id)
|
void |
rollbackTransaction(ConnectionContext context)
Rollback a persistence transaction |
void |
setIndexType(java.lang.String indexType)
|
void |
setMaxDataFileLength(long maxDataFileLength)
|
void |
setUsageManager(UsageManager usageManager)
|
void |
setUseExternalMessageReferences(boolean useExternalMessageReferences)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KahaPersistenceAdapter(java.io.File dir)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.util.Set getDestinations()
PersistenceAdapterActiveMQDestination
objects that the persistence store is aware exist.
getDestinations in interface PersistenceAdapter
public MessageStore createQueueMessageStore(ActiveMQQueue destination)
throws java.io.IOException
PersistenceAdapter
createQueueMessageStore in interface PersistenceAdapterjava.io.IOException
public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination)
throws java.io.IOException
PersistenceAdapter
createTopicMessageStore in interface PersistenceAdapterjava.io.IOExceptionprotected MessageStore retrieveMessageStore(java.lang.Object id)
public TransactionStore createTransactionStore()
throws java.io.IOException
PersistenceAdapter
createTransactionStore in interface PersistenceAdapterjava.io.IOExceptionpublic void beginTransaction(ConnectionContext context)
PersistenceAdapter
beginTransaction in interface PersistenceAdapter
public void commitTransaction(ConnectionContext context)
throws java.io.IOException
PersistenceAdapter
commitTransaction in interface PersistenceAdapterjava.io.IOExceptionPersistenceAdapter#beginTransaction()public void rollbackTransaction(ConnectionContext context)
PersistenceAdapter
rollbackTransaction in interface PersistenceAdapterPersistenceAdapter#beginTransaction()
public void start()
throws java.lang.Exception
start in interface Servicejava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Servicejava.lang.Exception
public long getLastMessageBrokerSequenceId()
throws java.io.IOException
getLastMessageBrokerSequenceId in interface PersistenceAdapterjava.io.IOException
public void deleteAllMessages()
throws java.io.IOException
PersistenceAdapter
deleteAllMessages in interface PersistenceAdapterjava.io.IOExceptionpublic boolean isUseExternalMessageReferences()
isUseExternalMessageReferences in interface PersistenceAdapterpublic void setUseExternalMessageReferences(boolean useExternalMessageReferences)
setUseExternalMessageReferences in interface PersistenceAdapter
protected MapContainer getMapContainer(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
java.io.IOException
protected ListContainer getListContainer(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
java.io.IOExceptionpublic void setUsageManager(UsageManager usageManager)
setUsageManager in interface PersistenceAdapterusageManager - The UsageManager that is controlling the broker's memory
usage.public long getMaxDataFileLength()
public void setMaxDataFileLength(long maxDataFileLength)
maxDataFileLength - the maxDataFileLength to setpublic java.lang.String getIndexType()
public void setIndexType(java.lang.String indexType)
indexType - the indexTypes to set
protected Store getStore()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||