|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.store.kahadaptor.KahaPersistenceAdapter
org.apache.activemq.store.kahadaptor.KahaReferenceStoreAdapter
public class KahaReferenceStoreAdapter
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter |
|---|
messageStores, queues, topics, transactionStore, wireFormat |
| Constructor Summary | |
|---|---|
KahaReferenceStoreAdapter(AtomicLong size)
|
|
| Method Summary | |
|---|---|
protected void |
addSubscriberState(SubscriptionInfo info)
|
void |
clearMessages()
called by recover to clear out message references |
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 |
ReferenceStore |
createQueueReferenceStore(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 |
TopicReferenceStore |
createTopicReferenceStore(ActiveMQTopic destination)
Factory method to create a new topic message store with the given destination name |
void |
deleteAllMessages()
Delete's all the messages in the persistent store. |
int |
getIndexBinSize()
|
int |
getIndexKeySize()
|
int |
getIndexLoadFactor()
|
int |
getIndexMaxBinSize()
|
int |
getIndexPageSize()
|
protected MapContainer<MessageId,ReferenceRecord> |
getMapReferenceContainer(Object id,
String containerName)
|
Set<Integer> |
getReferenceFileIdsInUse()
|
protected Store |
getStateStore()
|
boolean |
isPersistentIndex()
|
boolean |
isStoreValid()
If the store isn't valid, it can be recoverd at start-up |
void |
recordAckFileReferences(int ackDataFileId,
int messageFileId)
|
void |
recoverState()
recover any state |
void |
recoverSubscription(SubscriptionInfo info)
Recover particular subscription. |
void |
removeReferenceStore(KahaReferenceStore referenceStore)
|
protected void |
removeSubscriberState(SubscriptionInfo info)
|
Map<TransactionId,AMQTx> |
retrievePreparedState()
|
void |
savePreparedState(Map<TransactionId,AMQTx> map)
Save prepared transactions |
void |
setDirectory(File directory)
Set the directory where any data files should be created |
void |
setIndexBinSize(int indexBinSize)
|
void |
setIndexKeySize(int indexKeySize)
|
void |
setIndexLoadFactor(int loadFactor)
|
void |
setIndexMaxBinSize(int maxBinSize)
|
void |
setIndexPageSize(int indexPageSize)
|
void |
setPersistentIndex(boolean persistentIndex)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter |
|---|
beginTransaction, checkpoint, createMessageMarshaller, createStore, createTransactionStore, getBrokerName, getDestinations, getDirectory, getLastMessageBrokerSequenceId, getLastProducerSequenceId, getListContainer, getMapContainer, getMaxDataFileLength, getStore, getSubsMapContainer, removeQueueMessageStore, removeTopicMessageStore, retrieveMessageStore, rollbackTransaction, setBrokerName, setBrokerService, setMaxDataFileLength, setUsageManager, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.activemq.store.ReferenceStoreAdapter |
|---|
getMaxDataFileLength, setMaxDataFileLength |
| Methods inherited from interface org.apache.activemq.store.PersistenceAdapter |
|---|
beginTransaction, checkpoint, createTransactionStore, getDestinations, getDirectory, getLastMessageBrokerSequenceId, getLastProducerSequenceId, removeQueueMessageStore, removeTopicMessageStore, rollbackTransaction, setBrokerName, setUsageManager, size |
| Constructor Detail |
|---|
public KahaReferenceStoreAdapter(AtomicLong size)
| Method Detail |
|---|
public MessageStore createQueueMessageStore(ActiveMQQueue destination)
throws IOException
PersistenceAdapter
createQueueMessageStore in interface PersistenceAdaptercreateQueueMessageStore in class KahaPersistenceAdapterIOException
public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination)
throws IOException
PersistenceAdapter
createTopicMessageStore in interface PersistenceAdaptercreateTopicMessageStore in class KahaPersistenceAdapterIOException
public void start()
throws Exception
start in interface Servicestart in class KahaPersistenceAdapterException
public void stop()
throws Exception
stop in interface Servicestop in class KahaPersistenceAdapterException
public void commitTransaction(ConnectionContext context)
throws IOException
PersistenceAdapter
commitTransaction in interface PersistenceAdaptercommitTransaction in class KahaPersistenceAdapterIOExceptionPersistenceAdapter.beginTransaction(ConnectionContext context)public boolean isStoreValid()
ReferenceStoreAdapter
isStoreValid in interface ReferenceStoreAdapter
public ReferenceStore createQueueReferenceStore(ActiveMQQueue destination)
throws IOException
ReferenceStoreAdapter
createQueueReferenceStore in interface ReferenceStoreAdapterIOException
public TopicReferenceStore createTopicReferenceStore(ActiveMQTopic destination)
throws IOException
ReferenceStoreAdapter
createTopicReferenceStore in interface ReferenceStoreAdapterIOExceptionpublic void removeReferenceStore(KahaReferenceStore referenceStore)
protected MapContainer<MessageId,ReferenceRecord> getMapReferenceContainer(Object id,
String containerName)
throws IOException
IOException
public Set<Integer> getReferenceFileIdsInUse()
throws IOException
getReferenceFileIdsInUse in interface ReferenceStoreAdapterIOExceptionReferenceStoreAdapter.getReferenceFileIdsInUse()
public void recordAckFileReferences(int ackDataFileId,
int messageFileId)
public void clearMessages()
throws IOException
ReferenceStoreAdapter
clearMessages in interface ReferenceStoreAdapterIOExceptionReferenceStoreAdapter.clearMessages()
public void recoverState()
throws IOException
ReferenceStoreAdapter
recoverState in interface ReferenceStoreAdapterIOExceptionReferenceStoreAdapter.recoverState()
public void recoverSubscription(SubscriptionInfo info)
throws IOException
ReferenceStoreAdapter
recoverSubscription in interface ReferenceStoreAdapterIOException
public Map<TransactionId,AMQTx> retrievePreparedState()
throws IOException
retrievePreparedState in interface ReferenceStoreAdapterIOException
public void savePreparedState(Map<TransactionId,AMQTx> map)
throws IOException
ReferenceStoreAdapter
savePreparedState in interface ReferenceStoreAdapterIOExceptionpublic void setDirectory(File directory)
PersistenceAdapter
setDirectory in interface PersistenceAdaptersetDirectory in class KahaPersistenceAdapter
protected Store getStateStore()
throws IOException
IOException
public void deleteAllMessages()
throws IOException
PersistenceAdapter
deleteAllMessages in interface PersistenceAdapterdeleteAllMessages in class KahaPersistenceAdapterIOExceptionpublic boolean isPersistentIndex()
isPersistentIndex in class KahaPersistenceAdapterpublic void setPersistentIndex(boolean persistentIndex)
setPersistentIndex in class KahaPersistenceAdapter
protected void addSubscriberState(SubscriptionInfo info)
throws IOException
IOExceptionprotected void removeSubscriberState(SubscriptionInfo info)
public int getIndexBinSize()
public void setIndexBinSize(int indexBinSize)
public int getIndexKeySize()
public void setIndexKeySize(int indexKeySize)
public int getIndexPageSize()
public void setIndexPageSize(int indexPageSize)
public int getIndexMaxBinSize()
public void setIndexMaxBinSize(int maxBinSize)
public int getIndexLoadFactor()
public void setIndexLoadFactor(int loadFactor)
loadFactor - the loadFactor to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||