org.apache.activemq.store.kahadb
Class KahaDBStore.KahaDBMessageStore

java.lang.Object
  extended by org.apache.activemq.store.AbstractMessageStore
      extended by org.apache.activemq.store.kahadb.KahaDBStore.KahaDBMessageStore
All Implemented Interfaces:
org.apache.activemq.Service, MessageStore
Enclosing class:
KahaDBStore

public class KahaDBStore.KahaDBMessageStore
extends AbstractMessageStore


Field Summary
protected  Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> asyncTaskMap
           
protected  KahaDestination dest
           
 
Fields inherited from class org.apache.activemq.store.AbstractMessageStore
destination, FUTURE, prioritizedMessages
 
Constructor Summary
KahaDBStore.KahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination)
           
 
Method Summary
protected  void acquireLocalAsyncLock()
           
 void addMessage(ConnectionContext context, org.apache.activemq.command.Message message)
           
 Future<Object> asyncAddQueueMessage(ConnectionContext context, org.apache.activemq.command.Message message)
           
 org.apache.activemq.command.ActiveMQDestination getDestination()
           
 org.apache.activemq.command.Message getMessage(org.apache.activemq.command.MessageId identity)
           
 int getMessageCount()
           
 boolean isEmpty()
           
protected  void lockAsyncJobQueue()
           
 void recover(MessageRecoveryListener listener)
           
 void recoverNextMessages(int maxReturned, MessageRecoveryListener listener)
           
protected  void releaseLocalAsyncLock()
           
 void removeAllMessages(ConnectionContext context)
           
 void removeAsyncMessage(ConnectionContext context, org.apache.activemq.command.MessageAck ack)
           
 void removeMessage(ConnectionContext context, org.apache.activemq.command.MessageAck ack)
           
 void resetBatching()
           
 void setBatch(org.apache.activemq.command.MessageId identity)
           
 void setMemoryUsage(MemoryUsage memoeyUSage)
           
 void start()
           
 void stop()
           
protected  void unlockAsyncJobQueue()
           
 
Methods inherited from class org.apache.activemq.store.AbstractMessageStore
addMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, isPrioritizedMessages, setPrioritizedMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asyncTaskMap

protected final Map<org.apache.activemq.store.kahadb.KahaDBStore.AsyncJobKey,KahaDBStore.StoreTask> asyncTaskMap

dest

protected KahaDestination dest
Constructor Detail

KahaDBStore.KahaDBMessageStore

public KahaDBStore.KahaDBMessageStore(org.apache.activemq.command.ActiveMQDestination destination)
Method Detail

getDestination

public org.apache.activemq.command.ActiveMQDestination getDestination()
Specified by:
getDestination in interface MessageStore
Overrides:
getDestination in class AbstractMessageStore

asyncAddQueueMessage

public Future<Object> asyncAddQueueMessage(ConnectionContext context,
                                           org.apache.activemq.command.Message message)
                                    throws IOException
Specified by:
asyncAddQueueMessage in interface MessageStore
Overrides:
asyncAddQueueMessage in class AbstractMessageStore
Throws:
IOException

removeAsyncMessage

public void removeAsyncMessage(ConnectionContext context,
                               org.apache.activemq.command.MessageAck ack)
                        throws IOException
Specified by:
removeAsyncMessage in interface MessageStore
Overrides:
removeAsyncMessage in class AbstractMessageStore
Throws:
IOException

addMessage

public void addMessage(ConnectionContext context,
                       org.apache.activemq.command.Message message)
                throws IOException
Throws:
IOException

removeMessage

public void removeMessage(ConnectionContext context,
                          org.apache.activemq.command.MessageAck ack)
                   throws IOException
Throws:
IOException

removeAllMessages

public void removeAllMessages(ConnectionContext context)
                       throws IOException
Throws:
IOException

getMessage

public org.apache.activemq.command.Message getMessage(org.apache.activemq.command.MessageId identity)
                                               throws IOException
Throws:
IOException

getMessageCount

public int getMessageCount()
                    throws IOException
Throws:
IOException

isEmpty

public boolean isEmpty()
                throws IOException
Specified by:
isEmpty in interface MessageStore
Overrides:
isEmpty in class AbstractMessageStore
Throws:
IOException

recover

public void recover(MessageRecoveryListener listener)
             throws Exception
Throws:
Exception

recoverNextMessages

public void recoverNextMessages(int maxReturned,
                                MessageRecoveryListener listener)
                         throws Exception
Throws:
Exception

resetBatching

public void resetBatching()

setBatch

public void setBatch(org.apache.activemq.command.MessageId identity)
              throws IOException
Specified by:
setBatch in interface MessageStore
Overrides:
setBatch in class AbstractMessageStore
Throws:
IOException

setMemoryUsage

public void setMemoryUsage(MemoryUsage memoeyUSage)
Specified by:
setMemoryUsage in interface MessageStore
Overrides:
setMemoryUsage in class AbstractMessageStore

start

public void start()
           throws Exception
Specified by:
start in interface org.apache.activemq.Service
Overrides:
start in class AbstractMessageStore
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface org.apache.activemq.Service
Overrides:
stop in class AbstractMessageStore
Throws:
Exception

lockAsyncJobQueue

protected void lockAsyncJobQueue()

unlockAsyncJobQueue

protected void unlockAsyncJobQueue()

acquireLocalAsyncLock

protected void acquireLocalAsyncLock()

releaseLocalAsyncLock

protected void releaseLocalAsyncLock()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.