|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.service.impl.PersistenceAdapterSupport
org.codehaus.activemq.store.jdbm.JdbmPersistenceAdapter
A PersistenceAdapter
implementation for
JDBM
Constructor Summary | |
JdbmPersistenceAdapter()
|
|
JdbmPersistenceAdapter(File directory)
|
|
JdbmPersistenceAdapter(jdbm.RecordManager manager)
|
Method Summary | |
void |
beginTransaction()
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 optimisation. |
void |
commitTransaction()
Commit a persistence transaction |
jdbm.btree.BTree |
createDatabase(String name)
|
PreparedTransactionStore |
createPreparedTransactionStore()
Factory method to create a new persistent prepared transaction store for XA recovery |
MessageStore |
createQueueMessageStore(String destinationName)
Factory method to create a new queue message store with the given destination name |
TopicMessageStore |
createTopicMessageStore(String destinationName)
Factory method to create a new topic message store with the given destination name |
File |
getDirectory()
|
Map |
getInitialDestinations()
Returns a map, indexed by String name, of all the Destination
objects active on startup. |
jdbm.RecordManager |
getManager()
|
static JdbmPersistenceAdapter |
newInstance(File directory)
Factory method to create an instance using the defaults |
void |
rollbackTransaction()
Rollback a persistence transaction |
void |
setDirectory(File directory)
|
void |
setManager(jdbm.RecordManager manager)
|
void |
start()
Called to start the service |
void |
stop()
Called to shutdown the service |
Methods inherited from class org.codehaus.activemq.service.impl.PersistenceAdapterSupport |
createQueueMessageContainer, createTopicMessageContainer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbmPersistenceAdapter()
public JdbmPersistenceAdapter(File directory)
public JdbmPersistenceAdapter(jdbm.RecordManager manager)
Method Detail |
public static JdbmPersistenceAdapter newInstance(File directory) throws JMSException
directory
- the directory in which to store the persistent files
JMSException
public Map getInitialDestinations()
PersistenceAdapter
Destination
objects active on startup.
public MessageStore createQueueMessageStore(String destinationName) throws JMSException
PersistenceAdapter
JMSException
public TopicMessageStore createTopicMessageStore(String destinationName) throws JMSException
PersistenceAdapter
JMSException
public PreparedTransactionStore createPreparedTransactionStore() throws JMSException
PersistenceAdapter
JMSException
public void beginTransaction()
PersistenceAdapter
public void commitTransaction() throws JMSException
PersistenceAdapter
JMSException
PersistenceAdapter.beginTransaction()
public void rollbackTransaction()
PersistenceAdapter
PersistenceAdapter.beginTransaction()
public void start() throws JMSException
Service
JMSException
public void stop() throws JMSException
Service
JMSException
public jdbm.RecordManager getManager()
public void setManager(jdbm.RecordManager manager)
public File getDirectory()
public void setDirectory(File directory)
public jdbm.btree.BTree createDatabase(String name) throws IOException, AlreadyClosedException
IOException
AlreadyClosedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |